/**
 * Turnifure User Content - Forms Stylesheet
 *
 * Consolidated CSS for Contact Us and Subscription/Waitlist forms.
 */

/* ==========================================================================
   Base Container & Resets
   ========================================================================== */
.turnifure-contact-wrapper,
.msf-wrapper {
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 auto;
}

.turnifure-contact-wrapper *,
.turnifure-contact-wrapper *::before,
.turnifure-contact-wrapper *::after,
.msf-wrapper *,
.msf-wrapper *::before,
.msf-wrapper *::after {
    box-sizing: inherit;
}

/* ==========================================================================
   Feedback Notifications
   ========================================================================== */
.tfc-feedback,
.msf-feedback {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.tfc-feedback-success,
.msf-feedback.msf-success {
    background-color: #eafaf1;
    border: 1px solid #a3e4d7;
    color: #0e6251;
}

.tfc-feedback-error,
.msf-feedback.msf-error {
    background-color: #fdf2e9;
    border: 1px solid #fadbd8;
    color: #78281f;
}

.msf-hidden {
    display: none;
}

.tfc-error-list {
    margin: 8px 0 0 20px;
    padding: 0;
}

.tfc-error-list li {
    margin-bottom: 4px;
}

/* ==========================================================================
   Contact Us Form Styles
   ========================================================================== */
.tfc-contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tfc-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tfc-form-label {
    font-weight: 600;
    color: inherit;
    font-size: 0.95rem;
}

.tfc-form-input,
.tfc-form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    color: inherit;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tfc-form-input:focus,
.tfc-form-textarea:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
    outline: none;
}

.tfc-form-textarea {
    min-height: 160px;
    resize: vertical;
}

.tfc-form-submit-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #15803d;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.tfc-form-submit-btn:hover {
    background-color: #166534;
}

.tfc-form-submit-btn:active {
    transform: scale(0.99);
}

/* ==========================================================================
   Subscription & Waitlist Form Styles
   ========================================================================== */
.msf-waitlist-header {
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.msf-container {
    width: 100%;
}

.msf-form {
    width: 100%;
}

.msf-input-group {
    display: flex;
    gap: 8px;
    width: 100%;
}

.msf-email-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    color: inherit;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.msf-email-input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
    outline: none;
}

.msf-submit-button {
    padding: 10px 24px;
    background-color: #15803d;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}

.msf-submit-button:hover {
    background-color: #166534;
}

.msf-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 480px) {
    .tfc-form-input,
    .tfc-form-textarea,
    .msf-email-input {
        font-size: 16px; /* Prevents auto-zoom on iOS */
        padding: 9px 12px;
    }

    .tfc-form-submit-btn,
    .msf-submit-button {
        padding: 11px 16px;
    }

    .msf-input-group {
        flex-direction: column;
    }
}
