/* ===========================================
   Contact Form Styles
   Snow Monkey Forms Custom Styling
   =========================================== */

/* Form Container */
.snow-monkey-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    background-color: #fafafa;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .snow-monkey-form {
        padding: 2rem 1.5rem;
    }
}

/* Form Item Row */
.smf-item {
    margin-bottom: 1.5rem;
}

.smf-item:last-child {
    margin-bottom: 0;
}

/* Label Styles */
.smf-item__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #333;
    letter-spacing: 0.02em;
}

/* Required Badge */
.smf-item__label__text::after {
    content: '';
}

.smf-item[data-validations*="required"] .smf-item__label__text::after {
    content: '*';
    color: #e74c3c;
    margin-left: 0.25rem;
    font-weight: 700;
}

/* Input Fields - Text, Email, Tel */
.smf-text-control__control,
.smf-email-control__control,
.smf-tel-control__control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.smf-text-control__control:focus,
.smf-email-control__control:focus,
.smf-tel-control__control:focus {
    outline: none;
    border-color: #0077b6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
}

.smf-text-control__control::placeholder,
.smf-email-control__control::placeholder,
.smf-tel-control__control::placeholder {
    color: #999;
}

/* Textarea */
.smf-textarea-control__control {
    width: 100%;
    min-height: 150px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.smf-textarea-control__control:focus {
    outline: none;
    border-color: #0077b6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
}

.smf-textarea-control__control::placeholder {
    color: #999;
}

/* Checkbox Styles */
.smf-checkboxes-control__control {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.smf-checkboxes-control__control label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: #333;
}

.smf-checkboxes-control__control input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #0077b6;
    cursor: pointer;
}

/* Submit Button */
.smf-action {
    margin-top: 2rem;
    text-align: center;
}

.smf-button-control__control {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 200px !important;
    padding: 1rem 2.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    color: #fff !important;
    background: linear-gradient(135deg, #0077b6 0%, #005a8c 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3) !important;
}

.smf-button-control__control:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4) !important;
    background: linear-gradient(135deg, #0088cc 0%, #0077b6 100%) !important;
}

.smf-button-control__control:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(0, 119, 182, 0.3) !important;
}

/* Validation Error Styles */
.smf-error-messages {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #e74c3c;
}

.smf-item--error .smf-text-control__control,
.smf-item--error .smf-email-control__control,
.smf-item--error .smf-tel-control__control,
.smf-item--error .smf-textarea-control__control {
    border-color: #e74c3c;
}

/* Complete Screen Styles */
.smf-complete-content {
    text-align: center;
    padding: 3rem 2rem;
}

.smf-complete-content p {
    font-size: 1.125rem;
    color: #333;
}

/* ===========================================
   Contact Page Layout
   =========================================== */

/* Page Description - works on contact page */
.post_content > p:first-of-type {
    text-align: center;
    font-size: 1.125rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.post_content > p:nth-of-type(2) {
    text-align: center;
    font-size: 0.9375rem;
    color: #666;
    margin-bottom: 2rem;
}


/* Privacy Policy Link Style */
.smf-checkboxes-control__control a {
    color: #0077b6;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.smf-checkboxes-control__control a:hover {
    color: #005a8c;
}

/* ===========================================
   Responsive Adjustments
   =========================================== */

@media (max-width: 600px) {
    .snow-monkey-form {
        padding: 1.5rem 1rem;
    }

    .smf-item__label {
        font-size: 0.875rem;
    }

    .smf-text-control__control,
    .smf-email-control__control,
    .smf-tel-control__control,
    .smf-textarea-control__control {
        padding: 0.75rem 0.875rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .smf-button-control__control {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
}
