@charset "utf-8";
/* Contact form styles based on common.css patterns */

/* === Contact Page Layout === */
.contact-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    border-bottom: 2px solid #00b300;
}

.contact-header h2 {
    font-size: 2.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.contact-header p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* === Form Container === */
.contact-form-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 30px;
}

/* === Form Styling === */
.wpcf7-form {
    width: 100%;
}

.wpcf7-form p {
    margin-bottom: 25px;
}

.wpcf7-form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

/* === Required and Optional Labels === */
.required {
    color: #dc3545;
    font-weight: bold;
    font-size: 14px;
    margin-left: 8px;
}

.any {
    color: #666;
    font-weight: normal;
    font-size: 14px;
    margin-left: 8px;
}

/* === Form Controls === */
.wpcf7-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wpcf7-form-control:focus {
    outline: none;
    border-color: #00b300;
    box-shadow: 0 0 0 3px rgba(0, 179, 0, 0.1);
}

.wpcf7-form-control::placeholder {
    color: #999;
    font-style: italic;
}

/* === Text Input Specific Styling === */
.wpcf7-text,
.wpcf7-email {
    height: 50px;
}

/* === Textarea Styling === */
.wpcf7-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

/* === Checkbox Styling === */
.wpcf7-checkbox {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpcf7-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wpcf7-list-item:hover {
    background: #e9ecef;
    border-color: #00b300;
}

.wpcf7-list-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #00b300;
}

.wpcf7-list-item-label {
    font-weight: 500;
    color: #333;
    cursor: pointer;
    flex: 1;
}

/* === Submit Button === */
.wpcf7-submit {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #00b300 0%, #00d900 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 179, 0, 0.3);
    margin-top: 20px;
}

.wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 179, 0, 0.4);
    background: linear-gradient(135deg, #00d900 0%, #00b300 100%);
}

.wpcf7-submit:active {
    transform: translateY(0);
}

/* === Loading Spinner === */
.wpcf7-spinner {
    display: none;
    margin-left: 10px;
}

.wpcf7-form.submitting .wpcf7-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === Success Message === */
.contact-success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #00b300;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 179, 0, 0.2);
}

.contact-success-message .general-title {
    font-size: 2rem;
    font-weight: bold;
    color: #006600;
    margin-bottom: 20px;
}

.contact-success-message p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 0;
}

.contact-success-message a {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #00b300 0%, #00d900 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.contact-success-message a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 179, 0, 0.4);
    text-decoration: none;
    color: white;
}

/* === Error Messages === */
.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    color: #721c24;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 2px solid #f5c6cb;
    text-align: center;
    font-weight: 500;
}

.wpcf7-response-output {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.wpcf7-mail-sent-ok {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #00b300;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* === Privacy Policy Link === */
.privacy-notice {
    background: #f8f9fa;
    border-left: 4px solid #00b300;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.privacy-notice p {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.privacy-notice a {
    color: #00b300;
    text-decoration: none;
    font-weight: 500;
}

.privacy-notice a:hover {
    color: #00d900;
    text-decoration: underline;
}

/* === Store List Link === */
.store-link {
    color: #00b300;
    text-decoration: none;
    font-weight: 500;
    margin-left: 10px;
    font-size: 14px;
}

.store-link:hover {
    color: #00d900;
    text-decoration: underline;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .contact-container {
        padding: 15px;
    }
    
    .contact-form-container {
        padding: 25px 20px;
    }
    
    .contact-header h2 {
        font-size: 1.8rem;
    }
    
    .contact-header p {
        font-size: 14px;
    }
    
    .wpcf7-form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .wpcf7-text,
    .wpcf7-email {
        height: 45px;
    }
    
    .wpcf7-textarea {
        min-height: 100px;
    }
    
    .wpcf7-submit {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .wpcf7-checkbox {
        gap: 8px;
    }
    
    .wpcf7-list-item {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .contact-header {
        padding: 20px 0;
    }
    
    .contact-header h2 {
        font-size: 1.5rem;
    }
    
    .contact-form-container {
        padding: 20px 15px;
    }
    
    .wpcf7-form p {
        margin-bottom: 20px;
    }
    
    .contact-success-message {
        padding: 25px 20px;
    }
    
    .contact-success-message .general-title {
        font-size: 1.6rem;
    }
}

/* === Animation for form appearance === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form-container {
    animation: fadeInUp 0.6s ease-out;
}

/* === Focus styles for accessibility === */
.wpcf7-form-control:focus,
.wpcf7-list-item:focus-within {
    outline: 2px solid #00b300;
    outline-offset: 2px;
}

/* === Validation styles === */
.wpcf7-form-control:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.wpcf7-form-control:valid:not(:placeholder-shown) {
    border-color: #28a745;
}
