/* Form Styling matching the approved mockup layout and fonts */
.icx-contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.icx-form-fields-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.icx-form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.icx-input-field {
    background: #ffffff !important;
    border: 1px solid #D9E1DC !important;
    border-radius: 10px !important;
    color: #4E5A57 !important;
    font-family: 'Manrope', Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    min-height: 52px !important;
    padding: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.icx-input-field::placeholder {
    color: #7A8380 !important;
    opacity: 1 !important;
}

.icx-input-field:focus {
    border-color: #245B5A !important;
    box-shadow: 0 0 0 2px rgba(36, 91, 90, 0.1) !important;
}

.icx-textarea-field {
    min-height: 122px !important;
    resize: vertical !important;
}

/* Radio Group styling mimicking original mockup */
.icx-radio-group {
    background: #ffffff;
    border: 1px solid #D9E1DC;
    border-radius: 10px;
    padding: 16px;
}

.icx-radio-group .icx-field-label {
    color: #384240;
    display: block;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px;
}

.icx-required-star {
    color: #C8795E;
}

.icx-choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.icx-choice-label {
    cursor: pointer;
    margin: 0;
}

.icx-choice-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.icx-choice-btn {
    background: #FAF8F4;
    border: 1px solid #D9E1DC;
    border-radius: 999px;
    color: #4E5A57;
    display: inline-block;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    padding: 9px 15px;
    transition: all 0.2s ease-in-out;
    user-select: none;
}

.icx-choice-label input[type="radio"]:checked + .icx-choice-btn {
    background: #245B5A;
    border-color: #245B5A;
    color: #ffffff;
}

.icx-choice-label input[type="radio"]:focus + .icx-choice-btn {
    box-shadow: 0 0 0 2px rgba(36, 91, 90, 0.2);
}

/* Error message styling */
.icx-field-error-msg {
    color: #C8795E;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    display: none;
}

.icx-form-group.icx-has-error .icx-input-field,
.icx-form-group.icx-has-error.icx-radio-group {
    border-color: #C8795E !important;
}

.icx-form-group.icx-has-error .icx-field-error-msg {
    display: block;
}

/* Button & Response Styles */
.icx-contact-submit-btn {
    align-items: center;
    background: #245B5A !important;
    border: none !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    cursor: pointer !important;
    display: inline-flex !important;
    font-family: 'Manrope', Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    height: 48px !important;
    justify-content: center !important;
    margin-top: 22px !important;
    padding: 0 22px !important;
    transition: background-color 0.2s ease-in-out !important;
    width: fit-content;
}

.icx-contact-submit-btn:hover {
    background-color: #1a4241 !important;
}

.icx-contact-submit-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

/* Spinner */
.icx-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: icx-spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes icx-spin {
    to { transform: rotate(360deg); }
}

.icx-contact-submit-btn.icx-loading .icx-spinner {
    display: inline-block;
}

/* Form Response Box */
.icx-form-response-msg {
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    padding: 16px;
    border-radius: 10px;
    margin-top: 20px;
}

.icx-form-response-msg.icx-success {
    background-color: #E5EAE2;
    border: 1px solid #D9E1DC;
    color: #245B5A;
}

.icx-form-response-msg.icx-error {
    background-color: #FAF2F0;
    border: 1px solid #F3E2DE;
    color: #C8795E;
}

@media (max-width: 781px) {
    .icx-contact-submit-btn {
        width: 100% !important;
    }
}
