/* IRHAS GLOBAL — FORM PAGES */

.form-page-section {
    padding: 120px 0 100px;
    background: var(--bg-light);
    min-height: calc(100vh - 100px);
}


/* HEADING */

.form-page-heading {
    max-width: 850px;
    margin: 0 auto 50px;
}

.form-page-heading h1 {
    margin-top: 10px;
}

.form-page-heading p {
    max-width: 720px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}


/* FORM CARD */

.form-page-card {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 42px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}


/* FORM */

.irhas-form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}


/* FIELD */

.form-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 24px;
}

.form-grid .form-field {
    margin-bottom: 0;
}

.form-field label {
    color: var(--dark-blue);
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.form-field label span {
    color: var(--blue);
}


/* INPUT / SELECT / TEXTAREA */

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    color: var(--dark-blue);
    font-family: "Inter", sans-serif;
    font-size: 15px;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.form-field input,
.form-field select {
    min-height: 52px;
}

.form-field textarea {
    min-height: 145px;
    resize: vertical;
    line-height: 1.65;
}


/* PLACEHOLDER */

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #94a3b8;
}


/* SELECT */

.form-field select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 45px;
    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            #64748b 50%
        ),
        linear-gradient(
            135deg,
            #64748b 50%,
            transparent 50%
        );
    background-position:
        calc(100% - 20px) 22px,
        calc(100% - 14px) 22px;
    background-size:
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;
}

.form-field select:invalid {
    color: #94a3b8;
}

.form-field select option {
    color: var(--dark-blue);
}


/* FOCUS */

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(1, 138, 218, 0.1);
}


/* RESULT MESSAGE */

.form-result {
    display: none;
    margin: 5px 0 22px;
    padding: 14px 16px;
    border-radius: 10px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.form-result.success {
    display: block;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.form-result.error {
    display: block;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
}


/* SUBMIT */

.form-submit {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.form-submit .btn {
    min-width: 210px;
    justify-content: center;
    text-align: center;
}

.form-submit .btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}


/* TABLET / MOBILE */

@media (max-width: 768px) {

    .form-page-section {
        padding: 90px 0 70px;
    }

    .form-page-heading {
        margin-bottom: 35px;
    }

    .form-page-heading h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .form-page-heading p {
        font-size: 16px;
        line-height: 1.7;
    }

    .form-page-card {
        padding: 28px 22px;
        border-radius: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .form-grid .form-field,
    .form-field {
        margin-bottom: 24px;
    }

    .form-submit .btn {
        width: 100%;
    }
}


/* SMALL MOBILE */

@media (max-width: 480px) {

    .form-page-section {
        padding: 75px 0 55px;
    }

    .form-page-heading h1 {
        font-size: 28px;
    }

    .form-page-card {
        padding: 24px 18px;
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        font-size: 14px;
    }
}