/* ============================================================
   MatixERP Trial Signup — Dark theme (matches matixerp.com)
   Uses the site's :root design tokens (defined in the page head).
   ============================================================ */

/* ── Page wrapper / intro ── */
.matix-trial-wrap {
    padding: 7rem 0 3rem; /* clear the fixed site header */
    position: relative;
    overflow: hidden;
}
.matix-trial-wrap .trial-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(6,182,212,.15) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 80% 60%, rgba(129,140,248,.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.matix-trial-intro {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
}
.matix-trial-intro .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(52,211,153,.1);
    border: 1px solid rgba(52,211,153,.25);
    color: var(--green);
    font-size: .72rem;
    font-weight: 700;
    padding: .35rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.2rem;
    letter-spacing: .06em;
}
.matix-trial-intro h1 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: .8rem;
    color: var(--white);
}
.matix-trial-intro p {
    color: var(--text);
    font-size: .95rem;
    line-height: 1.8;
}

/* ── Form container ── */
.matix-form-container {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 2.5rem;
    background: linear-gradient(170deg, var(--panel), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    direction: rtl;
    font-family: var(--ar);
}

.matix-form-container h3 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.matix-form-container .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0 40px;
}

.matix-form-container .form-column {
    display: flex;
    flex-direction: column;
}

.matix-form-container label {
    font-weight: 700;
    color: var(--text2);
    margin-bottom: 8px;
    font-size: .72rem;
    letter-spacing: .04em;
}

.matix-form-container label .required {
    color: var(--red);
}

.matix-form-container input[type="text"],
.matix-form-container input[type="email"],
.matix-form-container input[type="password"],
.matix-form-container input[type="number"],
.matix-form-container select {
    width: 100%;
    padding: .8rem 1rem;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: .88rem;
    font-family: var(--ar);
    color: var(--white);
    background: rgba(255, 255, 255, .03);
    transition: border-color .3s, background .3s;
}

.matix-form-container input::placeholder { color: var(--text2); }

.matix-form-container select { appearance: none; cursor: pointer; }
.matix-form-container select option { background: var(--bg); color: var(--white); }

.matix-form-container input:focus,
.matix-form-container select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, .05);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, .12);
}

/* Submit */
.matix-form-container .form-submit {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.matix-form-container .submit-btn {
    background: linear-gradient(135deg, var(--accent), #0284c7);
    color: #fff;
    padding: .95rem 3rem;
    font-size: .95rem;
    font-weight: 800;
    font-family: var(--ar);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 0 24px rgba(6, 182, 212, .4);
}

.matix-form-container .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(6, 182, 212, .5);
}

.matix-form-container .submit-btn:active { transform: translateY(0); }
.matix-form-container .submit-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Result message */
.matix-form-container .result-message {
    margin-top: 20px;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: .9rem;
    display: none;
}

.matix-form-container .result-message.success {
    background: rgba(52, 211, 153, .12);
    color: var(--green);
    border: 1px solid rgba(52, 211, 153, .3);
    display: block;
}

.matix-form-container .result-message.error {
    background: rgba(248, 113, 113, .12);
    color: var(--red);
    border: 1px solid rgba(248, 113, 113, .3);
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .matix-form-container { padding: 1.5rem; margin: 0 1rem; }
    .matix-form-container .form-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ── Product description box ── */
.product-description-box {
    background: linear-gradient(135deg, rgba(6,182,212,.12), rgba(129,140,248,.12));
    border: 1px solid var(--border2);
    border-radius: 12px;
    padding: 18px;
    margin: 12px 0 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    animation: matixSlideDown .3s ease-out;
}

@keyframes matixSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-icon {
    font-size: 42px;
    line-height: 1;
    flex-shrink: 0;
}

.description-content { flex: 1; color: var(--white); }

.description-ar {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
    font-weight: 500;
    text-align: right;
    direction: rtl;
    color: var(--white);
}

.description-en {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
    font-style: italic;
    text-align: left;
    direction: ltr;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

@media (max-width: 768px) {
    .product-description-box { flex-direction: column; align-items: center; text-align: center; }
    .description-ar, .description-en { text-align: center; }
}

/* ── Business name availability feedback ── */
.business-name-feedback {
    font-size: 12px;
    margin-top: -12px;
    margin-bottom: 15px;
    padding: 8px 12px;
    border-radius: 8px;
    animation: matixSlideDown .3s ease;
}

.business-name-feedback.checking {
    background: rgba(251, 191, 36, .12);
    color: var(--gold);
    border: 1px solid rgba(251, 191, 36, .3);
}

.business-name-feedback.available {
    background: rgba(52, 211, 153, .12);
    color: var(--green);
    border: 1px solid rgba(52, 211, 153, .3);
}

.business-name-feedback.unavailable {
    background: rgba(248, 113, 113, .12);
    color: var(--red);
    border: 1px solid rgba(248, 113, 113, .3);
}
