/**
 * Contact Form 7 Custom Styles
 * Matches theme design
 */

/* Form Container */
.wpcf7-form {
    max-width: 100%;
}

/* Input Fields */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #000;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wpcf7 textarea {
    padding-left: 1rem;
    min-height: 100px;
    resize: vertical;
}

/* Placeholder */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: #9ca3af;
}

/* Select Dropdown */
.wpcf7 select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

/* Submit Button */
.wpcf7 input[type="submit"] {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #ec4899 100%);
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.wpcf7 input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #2563eb 0%, #db2777 100%);
}

.wpcf7 input[type="submit"]:active {
    transform: translateY(0);
}

/* Validation Messages */
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng,
.wpcf7-mail-sent-ok {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.wpcf7-mail-sent-ok {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Field Validation */
.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.wpcf7-not-valid {
    border-color: #dc2626 !important;
}

/* Spinner */
.wpcf7-spinner {
    margin: 0 auto;
    display: block;
}

/* Hero Form Specific Styles */
#hero-form .wpcf7-form {
    background: transparent;
}

#hero-form .wpcf7 input[type="text"],
#hero-form .wpcf7 input[type="email"],
#hero-form .wpcf7 input[type="tel"],
#hero-form .wpcf7 select,
#hero-form .wpcf7 textarea {
    padding-left: 3rem;
    position: relative;
}

#hero-form .wpcf7-form-control-wrap {
    position: relative;
}

#hero-form .wpcf7-form-control-wrap::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
    color: #9ca3af;
}

/* Contact Section Form Specific Styles */
#contact-form .wpcf7 input[type="text"],
#contact-form .wpcf7 input[type="email"],
#contact-form .wpcf7 input[type="tel"],
#contact-form .wpcf7 select,
#contact-form .wpcf7 textarea {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

#contact-form .wpcf7 input::placeholder,
#contact-form .wpcf7 textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#contact-form .wpcf7 input[type="text"]:focus,
#contact-form .wpcf7 input[type="email"]:focus,
#contact-form .wpcf7 input[type="tel"]:focus,
#contact-form .wpcf7 select:focus,
#contact-form .wpcf7 textarea:focus {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 input[type="tel"],
    .wpcf7 select,
    .wpcf7 textarea {
        padding: 0.875rem;
        font-size: 0.9375rem;
    }
}

