/* Contact Form Styles */
.contact-form {
    max-width: 100%;
    margin: 20px 0;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.email-single-field {
    max-width: calc(33.333% - 10px);
}

.contact-reason-field {
    max-width: calc(33.333% - 10px);
}

/* Custom Contact Method Select */
.custom-contact-select {
    position: relative;
    width: 100%;
}

.custom-contact-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: white;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    user-select: none;
    height: 34px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.custom-contact-trigger:hover {
    border-color: #808080;
}

.custom-contact-trigger .fa {
    font-size: 10px;
    color: #333;
    transition: transform 0.3s ease;
}

.custom-contact-select.open .custom-contact-trigger .fa {
    transform: rotate(180deg);
}

.custom-contact-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 3px 3px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 10;
    margin-top: -1px;
}

.custom-contact-select.open .custom-contact-options {
    display: block;
}

.custom-contact-option {
    padding: 8px 12px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-contact-option:hover {
    background: #F5F5F5;
}

.custom-contact-option.selected {
    background: #0057B8;
    color: white;
}

.custom-contact-option.selected:hover {
    background: #004494;
}

/* Custom Reason Select with Search */
.custom-reason-select {
    position: relative;
    width: 100%;
}

.custom-reason-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-reason-search {
    width: 100%;
    padding: 8px 32px 8px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: white;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    height: 34px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.custom-reason-search:focus {
    outline: none;
    border-color: #808080;
    box-shadow: none;
}

.custom-reason-arrow {
    position: absolute;
    right: 12px;
    font-size: 10px;
    color: #333;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.custom-reason-select.open .custom-reason-arrow {
    transform: rotate(180deg);
}

.custom-reason-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 3px 3px;
    display: none;
    z-index: 10;
    margin-top: -1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.custom-reason-select.open .custom-reason-dropdown {
    display: block;
}

.custom-reason-filter {
    width: calc(100% - 16px);
    padding: 8px 12px;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    box-sizing: border-box;
    background: white;
    margin: 8px;
    height: 34px;
}

.custom-reason-filter:focus {
    outline: none;
    border-color: #808080;
    box-shadow: none;
}

.custom-reason-filter::placeholder {
    color: #c0c0c0;
}

.custom-reason-options {
    max-height: 170px;
    overflow-y: auto;
}

.custom-reason-option {
    padding: 8px 12px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-reason-option:hover {
    background: #F5F5F5;
}

.custom-reason-option.selected {
    background: #0057B8;
    color: white;
}

.custom-reason-option.selected:hover {
    background: #004494;
}

.custom-reason-option.hidden {
    display: none;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 13px;
}

.required {
    color: #d9534f;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    height: 34px;
}

.form-control::placeholder {
    color: #c0c0c0;
    opacity: 1;
}

.form-control:focus {
    outline: none;
    border-color: #808080;
    box-shadow: none;
}

.form-control[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.8;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
    cursor: pointer;
}

.form-control.error {
    border-color: #d9534f !important;
}

.custom-contact-trigger.error,
.custom-reason-search.error {
    border-color: #d9534f !important;
}

.error-message {
    display: none;
    color: #d9534f;
    font-size: 11px;
    margin-top: 5px;
}

.error-message.show {
    display: block;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
    height: auto;
    padding: 8px 12px;
}

/* Submit Button */
.form-actions {
    text-align: right;
    margin-top: 15px;
    margin-bottom: 20px;
}

.btn {
    padding: 5px 8px;
    width: 294px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    font-family: Calibri;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background: #0057B8;
    color: white;
}

/* reCAPTCHA Styles */
.recaptcha-container {
    margin: 20px 0;
}

.recaptcha-widget {
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    background-color: #f9f9f9;
    width: 330px;
    box-sizing: border-box;
    font-family: Roboto, helvetica, arial, sans-serif;
}

.recaptcha-warning {
    background-color: transparent;
    color: red;
    font-size: 9px;
}

.recaptcha-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 12px 0 12px;
    height: 60px;
}

.recaptcha-checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.recaptcha-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
}

.recaptcha-label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.recaptcha-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.recaptcha-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.recaptcha-logo-img {
    width: 24px;
    height: 24px;
}

.recaptcha-text {
    font-size: 10px;
    color: #757575;
    font-weight: 500;
}

.recaptcha-links {
    font-size: 8px;
    color: #757575;
}

.recaptcha-links a {
    color: #757575;
    text-decoration: none;
}

.recaptcha-links a:hover {
    text-decoration: underline;
}

.separator {
    color: #757575;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .form-group {
        min-width: auto;
    }

    .form-actions {
        text-align: center;
    }

    .recaptcha-widget {
        width: 100%;
        max-width: 330px;
    }
}