/* ============================================
   CONTACT FORM 7 - MODERN STYLING
   ============================================ */

/* Form container */
.wpcf7-form {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Hidden fields container */
.wpcf7-form .hidden-fields-container {
    display: none;
}

/* Form title */
.wpcf7-form h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.025em;
}

/* Labels */
.wpcf7-form label[for^="form-"] {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Input wrapper */
.wpcf7-form-control-wrap {
    display: block;
    position: relative;
}

/* Text inputs, email, tel */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="password"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.625rem;
    font-size: 1rem;
    color: #1f2937;
    background-color: #f9fafb;
    box-sizing: border-box;
    transition: all 0.2s ease;
    outline: none;
}

/* Placeholder styling */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Focus state */
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* Valid state */
.wpcf7-form input.wpcf7-validates-as-required:focus {
    border-color: #3b82f6;
}

/* Error state */
.wpcf7-form .wpcf7-not-valid {
    border-color: #ef4444 !important;
}

.wpcf7-form .wpcf7-not-valid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

/* Error message */
.wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.375rem;
    display: block;
}



/* ============================================
   SUBMIT BUTTON STYLING
   ============================================ */

.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 0.625rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3), 0 2px 4px -1px rgba(59, 130, 246, 0.2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
    letter-spacing: 0.025em;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4), 0 4px 6px -2px rgba(59, 130, 246, 0.2);
}

.wpcf7-form input[type="submit"]:active,
.wpcf7-form .wpcf7-submit:active {
    transform: translateY(0);
}

button.w-full.bg-green-600 {
    width: 100%;
    background-color: #16a34a;
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button.w-full.bg-green-600:hover {
    background-color: #15803d;
    transform: scale(1.05);
}

button.w-full.bg-green-600:active {
    transform: scale(1);
}

/* Loading state */
.wpcf7-form .wpcf7-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================
   FORM VALIDATION & MESSAGES
   ============================================ */

.wpcf7-response-output {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    text-align: center;
}

.wpcf7-response-output.wpcf7-validation-errors {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.wpcf7-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    vertical-align: middle;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 640px) {
    .wpcf7-form h3 {
        font-size: 1.5rem;
    }

    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form textarea {
        padding: 0.75rem;
        font-size: 16px;
    }

    .wpcf7-form input[type="submit"],
    .wpcf7-form .wpcf7-submit {
        padding: 0.875rem 1.5rem;
    }
}

/* ============================================
   ADDITIONAL UTILITY CLASSES
   ============================================ */

.wpcf7-form .mb-4 {
    margin-bottom: 1rem;
}

.wpcf7-form .mt-2 {
    margin-top: 0.5rem;
}

.wpcf7-form .text-center {
    text-align: center;
}

/* Terms checkbox styling */
.wpcf7-form .wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.form-terms {
    font-size: 0.75rem;
    line-height: 1rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 1.25rem;
}

.form-terms a {
    color: #6b7280;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.form-terms a:hover {
    color: #374151;
}

/* Legacy form styles - keeping for backward compatibility */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.375rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #1f2937;
    background-color: #f9fafb;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #10b981;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.hidden-field {
    display: none;
}

.form-submit {
    width: 100%;
    background-color: #10b981;
    color: #ffffff;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2), 0 2px 4px -1px rgba(16, 185, 129, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
}

.form-submit:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3), 0 4px 6px -2px rgba(16, 185, 129, 0.15);
}

.form-submit:active {
    transform: translateY(0);
}