/* ============================================
   CONTACT FORM 7 STYLING - Reyvamp Theme
   ============================================ */

/* Form Container */
.wpcf7 {
    width: 100%;
}

.wpcf7-form {
    width: 100%;
}

/* Form Rows */
.wpcf7-form .form-row {
    margin-bottom: 20px;
}

/* Labels */
.wpcf7-form label {
    display: block;
    font-family: 'Telegraf', sans-serif;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 15px;
}

/* Input Fields */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Telegraf', sans-serif;
    font-size: 15px;
    color: #2c3e50;
    background: white;
    transition: all 0.3s ease;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    border-color: #0356A3;
    box-shadow: 0 0 0 3px rgba(3, 86, 163, 0.1);
    outline: none;
}

/* Textarea */
.wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Submit Button */
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"] {
    background-color: #0356A3;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 14px 35px;
    font-family: 'Telegraf', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover {
    background-color: #024a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 86, 163, 0.3);
}

.wpcf7-form input[type="submit"]:active,
.wpcf7-form button[type="submit"]:active {
    transform: translateY(0);
}

/* Success Message */
.wpcf7-response-output {
    margin: 20px 0 0;
    padding: 15px 20px;
    border-radius: 4px;
    font-family: 'Telegraf', sans-serif;
    font-size: 15px;
}

.wpcf7-mail-sent-ok {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Error Messages */
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Field Validation Errors */
.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: block;
    font-family: 'Telegraf', sans-serif;
}

.wpcf7-not-valid {
    border-color: #dc3545 !important;
}

/* Spinner (Loading) */
.wpcf7-spinner {
    margin-left: 10px;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(3, 86, 163, 0.3);
    border-top-color: #0356A3;
    border-radius: 50%;
    animation: wpcf7-spin 0.8s linear infinite;
}

@keyframes wpcf7-spin {
    to { transform: rotate(360deg); }
}

/* Checkbox & Radio */
.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

.wpcf7-list-item {
    margin: 0 0 10px;
}

.wpcf7-list-item-label {
    margin-left: 5px;
}

/* File Upload */
.wpcf7-form input[type="file"] {
    padding: 10px;
    border: 1px dashed #ddd;
    background: #f8f9fa;
}

/* Acceptance (Terms & Conditions) */
.wpcf7-acceptance {
    margin: 15px 0;
}

/* Quiz */
.wpcf7-quiz-label {
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wpcf7-form input[type="submit"],
    .wpcf7-form button[type="submit"] {
        width: 100%;
        padding: 14px 20px;
    }
    
    .wpcf7-form input,
    .wpcf7-form select,
    .wpcf7-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .wpcf7-form label {
        font-size: 14px;
    }
    
    .wpcf7-form input,
    .wpcf7-form select,
    .wpcf7-form textarea {
        padding: 10px 12px;
    }
}

/* Accessibility */
.wpcf7-form input:focus-visible,
.wpcf7-form select:focus-visible,
.wpcf7-form textarea:focus-visible {
    outline: 2px solid #0356A3;
    outline-offset: 2px;
}

/* Screen Reader Text */
.screen-reader-response {
    position: absolute;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    word-wrap: normal !important;
}

/* reCAPTCHA */
.wpcf7-form .g-recaptcha {
    margin: 20px 0;
}

/* Form Notice (Plugin not installed) */
.contact-form-notice {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.contact-form-notice ol {
    line-height: 1.8;
}

.contact-form-notice strong {
    color: #856404;
}
