#contact-form {
    background-color: #1f1f1f;
    padding-bottom: 0px;
}

#contact-form .container {
    max-width: 60%;
    margin: 0 auto;
    padding: 0 0px;
}

#contact-form .form-wrapper {
    padding: 40px;
}

#contact-form .contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#contact-form .form-row {
    display: flex;
    gap: 20px;
}

#contact-form .form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}


#contact-form .iti {
    width: 100% !important;
    display: block !important;
}

#contact-form .iti__flag-container {
    background-color: #1f1f1f !important;
    border-right: 1px solid #ddd !important;
    width: 90px !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
}

#contact-form .iti__selected-flag {
    background-color: #1f1f1f !important;
    padding: 12px 8px !important;
    width: 90px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#contact-form .iti__selected-dial-code {
    color: #ffffff !important;
    font-size: 16px !important;
    margin-left: 4px !important;
}

#contact-form .iti input[type="tel"] {
    padding-left: 98px !important;
    width: 100% !important;
    padding-right: 12px !important;
}

#contact-form .iti__arrow {
    border-top-color: #ffffff !important;
    margin-left: 4px !important;
}

#contact-form .iti__country-list {
    background-color: #1f1f1f !important;
    border: 1px solid #ddd !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    z-index: 1000 !important;
}

#contact-form .iti__country {
    padding: 8px 12px !important;
    color: #ffffff !important;
}

#contact-form .iti__country:hover,
#contact-form .iti__country.iti__highlight {
    background-color: #d00909 !important;
}

#contact-form .iti__dial-code {
    color: #cccccc !important;
}

#contact-form .form-group.full-width {
    flex: none;
}

#contact-form label {
    margin-bottom: 5px;
    color: #ffffff;
}

#contact-form input,
#contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    font-size: 16px;
    font-family: "Roboto", sans-serif;
    transition: border-color 0.3s ease;
    background-color: #1f1f1f;
    color: white;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #d00909;
}

#contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

#contact-form .submit-btn {
    background-color: #1f1f1f;
    border-color: #d0cece;
    border-width: 1px;
    border-style: solid;
    padding: 10px 10px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    color: white;
    min-width: 200px;
    text-align: center;
}

#contact-form .submit-btn:hover {
    background-color: #d00909;
}

#contact-form .submit-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

#contact-form .submit-btn.sent {
    background-color: #d00909 !important;
    border-color: #d00909 !important;
    cursor: not-allowed;
    opacity: 1;
}

#contact-form .submit-btn.error {
    background-color: #000000 !important;
    cursor: pointer;
    opacity: 1;
}


#contact-form .consent-group {
    margin-top: 10px;
    margin-bottom: 20px;
}

#contact-form .consent-label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
    margin-bottom: 0;
}

#contact-form .consent-label input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 20px;
    height: 20px;
    margin: 0;
    z-index: 1;
}

#contact-form .consent-label .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d0cece;
    background-color: transparent;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: all 0.3s ease;
}

#contact-form .consent-label input[type="checkbox"]:checked + .checkmark {
    background-color: #d00909;
    border-color: #d00909;
}

#contact-form .consent-label input[type="checkbox"]:checked + .checkmark:after {
    content: "";
    position: absolute;
    display: block;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#contact-form .consent-label a {
    color: #d0cece;
    text-decoration: underline;
    transition: color 0.3s ease;
}

#contact-form .consent-label a:hover {
    color: #d00909;
}

@media (max-width: 768px) {
    #contact-form .form-wrapper {
        padding: 20px;
        margin: 0 10px;
    }

    #contact-form h2 {
        font-size: 2rem;
    }

    #contact-form .form-row {
        flex-direction: column;
        gap: 20px;
    }

    #contact-form .iti {
        width: 100% !important;
    }

    #contact-form .container {
        width: 80%;
        max-width: 80%;
    }

    #contact-form .submit-btn {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Landscape mobile devices - optimize for limited vertical space */
@media screen and (orientation: landscape) and (max-height: 900px) {

    #contact-form .container {
        max-width: 80%;
    }
}
