
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Main Form Container */
.contact-form-container {
    width: 100%;
    max-width: 100%;
    margin: 30px auto;
    padding: 30px;
    background: #f8fafc;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
                0 1px 2px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

.sticky-form{
  position: sticky;
  top: 120px; /* adjust based on header height */
}

/* Form Layout */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    font-family: "Poppins", sans-serif;
}

/* Two Column Rows */
.contact-form .contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

/* Individual Form Groups */
.contact-form .contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* Labels */
.contact-form .contact-form-group > label {
    display: block;
    margin: 0;
    color: #222;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

/* Input, Select and Textarea */
.contact-form input:not([type="checkbox"]),
.contact-form select,
.contact-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 13px 12px;
    border: 1px solid #d5d9e2;
    border-radius: 5px;
    background: #fff;
    color: #222;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Placeholder */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
    font-size: 13px;
    opacity: 1;
}

/* Focus State */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #2f2484;
    box-shadow: 0 0 0 3px rgba(47, 36, 132, 0.08);
    outline: none;
}

/* Dropdown */
.contact-form select {
    min-height: 48px;
    cursor: pointer;
}

/* Date Picker */
.contact-form input[type="date"] {
    min-height: 48px;
    cursor: pointer;
}

/* Message Textarea */
.contact-form textarea {
    min-height: 110px;
    resize: vertical;
}

/* Issue Checkbox Grid */
.contact-form .contact-form-issues {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

/* Individual Checkbox Option */
.contact-form .contact-form-checkbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 13px 14px;
    margin: 0;
    border: 1px solid #d5d9e2;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.3s ease,
                background 0.3s ease;
}

/* Checkbox Hover */
.contact-form .contact-form-checkbox:hover {
    border-color: #2f2484;
    background: #f7f6ff;
}

/* Checkbox Input */
.contact-form .contact-form-checkbox input[type="checkbox"] {
    display: inline-block;
    width: 17px;
    height: 17px;
    min-width: 17px;
    margin: 0;
    padding: 0;
    accent-color: #2f2484;
    cursor: pointer;
}

/* Checkbox Text */
.contact-form .contact-form-checkbox span {
    display: block;
    flex: 1;
}

/* Selected Checkbox */
.contact-form .contact-form-checkbox:has(input:checked) {
    border-color: #2f2484;
    background: #f1efff;
}

/* reCAPTCHA */
.contact-form .contact-form-recaptcha {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 5px 0;
}

.contact-form .g-recaptcha {
    max-width: 100%;
    margin: 0 auto;
}

/* Submit Button */
.contact-form .contact-form-submit {
    display: block;
    width: 100%;
    max-width: 420px;
    min-height: 52px;
    margin: 5px auto 0;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    background: #2f2484;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.3s ease,
                transform 0.3s ease;
}

/* Button Hover */
.contact-form .contact-form-submit:hover {
    background: #21185f;
}

/* Button Focus */
.contact-form .contact-form-submit:focus-visible {
    outline: 3px solid rgba(47, 36, 132, 0.3);
    outline-offset: 3px;
}

/* Tablet */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 24px;
    }

    .contact-form .contact-form-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-form .contact-form-issues {
        grid-template-columns: 1fr;
    }

    .contact-form .contact-form-submit {
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .contact-form-container {
        width: 100%;
        padding: 18px 14px;
        margin: 20px auto;
        border-radius: 8px;
    }

    .contact-form {
        gap: 18px;
    }

    .contact-form .contact-form-row {
        gap: 16px;
    }

    .contact-form input:not([type="checkbox"]),
    .contact-form select,
    .contact-form textarea {
        font-size: 14px;
        padding: 12px 10px;
    }

    .contact-form .contact-form-checkbox {
        padding: 12px;
        font-size: 12px;
    }

    .contact-form .contact-form-submit {
        padding: 13px 12px;
        font-size: 13px;
    }
}
