/*
OmniNotify Contact Form 7 Style CSS
This file provides Contact Form 7-like styling for OmniNotify forms
*/

/* Reset and Base Styles */
.omninotify-form {
    max-width: 500px;
    margin: 0 auto;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    box-sizing: border-box;
}

/* Form Container - White Card Style */
.omninotify-form {
    display: flex !important;
    flex-wrap: wrap !important;
    max-width: 500px;
    margin: 0 auto;
    align-items: stretch;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border: none;
}

/* Form Fields */
.omninotify-form .form-field {
    margin: 0 !important;
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* Labels */
.omninotify-form label {
    display: none; /* Hide labels by default for CF7-like appearance */
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Input Fields - CF7 Style */
.omninotify-form input[type="text"],
.omninotify-form input[type="email"],
.omninotify-form input[type="tel"],
.omninotify-form textarea {
    flex: 1 !important;
    padding: 15px 20px !important;
    border: 2px solid #e1e5e9 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    color: #333 !important;
    background-color: white !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    outline: none !important;
    margin-right: 12px !important;
    margin-bottom: 0 !important;
    width: auto !important;
    max-width: none !important;
    height: 52px !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    font-family: inherit;
}

.omninotify-form input[type="text"]:focus,
.omninotify-form input[type="email"]:focus,
.omninotify-form input[type="tel"]:focus,
.omninotify-form textarea:focus {
    border-color: #154284 !important;
    box-shadow: 0 0 0 3px rgba(21, 66, 132, 0.1) !important;
}

/* Textarea specific styling */
.omninotify-form textarea {
    min-height: 120px !important;
    resize: vertical;
    height: auto !important;
}

/* Submit Button - CF7 Style */
.omninotify-form input[type="submit"] {
    padding: 15px 28px !important;
    background-color: #CD3263 !important;
    background: #CD3263 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
    white-space: nowrap !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 120px !important;
    height: 52px !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    font-family: inherit;
    text-transform: uppercase;
}

.omninotify-form input[type="submit"]:hover {
    background-color: #b02856 !important;
    background: #b02856 !important;
    transform: translateY(-1px) !important;
}

/* Checkbox Styling */
.omninotify-form input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
    height: auto;
    flex: none !important;
}

.omninotify-form .checkbox-label {
    display: inline;
    font-weight: normal;
    margin-left: 5px;
}

/* Horizontal Layout for Email + Submit */
.omninotify-form.horizontal-email-submit {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch;
    gap: 12px;
}

.omninotify-form.horizontal-email-submit .form-field {
    flex: 1;
    margin: 0;
}

.omninotify-form.horizontal-email-submit .form-field-submit {
    flex: 0 0 auto;
}

/* Response Messages - CF7 Style */
.omninotify-form .onf-success,
.omninotify-form .onf-error,
.omninotify-form .onf-info {
    width: 100% !important;
    flex-basis: 100% !important;
    margin-top: 20px !important;
    padding: 15px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    border: none !important;
    text-align: center !important;
    order: 999 !important;
}

.omninotify-form .onf-success {
    background-color: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.omninotify-form .onf-error,
.omninotify-form .onf-info {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .omninotify-form {
        flex-direction: column !important;
        padding: 20px;
    }
    
    .omninotify-form .form-field {
        flex-direction: column !important;
        margin-bottom: 16px;
    }
    
    .omninotify-form input[type="text"],
    .omninotify-form input[type="email"],
    .omninotify-form input[type="tel"],
    .omninotify-form textarea {
        margin-right: 0 !important;
        margin-bottom: 16px !important;
        width: 100% !important;
    }
    
    .omninotify-form input[type="submit"] {
        width: 100% !important;
    }
}

/* Newsletter Section Specific Styles */
.jat-newsletter-section .omninotify-form {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.jat-newsletter-section .omninotify-form .form-field {
    display: flex;
    width: 100%;
    align-items: stretch;
    margin-bottom: 0;
}

.jat-newsletter-section .omninotify-form input[type="email"] {
    flex: 1 !important;
    margin-right: 12px !important;
}

.jat-newsletter-section .omninotify-form input[type="submit"] {
    flex: 0 0 auto !important;
    min-width: 120px !important;
}

/* Unstyled Form Override */
.omninotify-form.omninotify-form-unstyled {
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}

.omninotify-form.omninotify-form-unstyled .form-field {
    margin-bottom: 0 !important;
}

.omninotify-form.omninotify-form-unstyled input[type="text"],
.omninotify-form.omninotify-form-unstyled input[type="email"],
.omninotify-form.omninotify-form-unstyled input[type="tel"],
.omninotify-form.omninotify-form-unstyled textarea,
.omninotify-form.omninotify-form-unstyled input[type="submit"] {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
    width: auto !important;
    height: auto !important;
    min-width: none !important;
    transition: none !important;
}

.omninotify-form.omninotify-form-unstyled input[type="text"]:focus,
.omninotify-form.omninotify-form-unstyled input[type="email"]:focus,
.omninotify-form.omninotify-form-unstyled input[type="tel"]:focus,
.omninotify-form.omninotify-form-unstyled textarea:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.omninotify-form.omninotify-form-unstyled input[type="submit"]:hover {
    background: none !important;
    transform: none !important;
} 