/* ============================================
   CF7 Custom Styles for Débloc'Immo
   Styles the CF7 forms to match the original design
   ============================================ */

/* === HERO FORM CF7 === */
.hero__form-card .wpcf7 {
    width: 100%;
}

.hero__form-card .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero__form-card .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.hero__form-card .hero__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.hero__form-card .wpcf7-form input[type="text"],
.hero__form-card .wpcf7-form input[type="tel"],
.hero__form-card .wpcf7-form input[type="email"],
.hero__form-card .wpcf7-form select,
.hero__form-card .wpcf7-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.hero__form-card .wpcf7-form input::placeholder,
.hero__form-card .wpcf7-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hero__form-card .wpcf7-form input:focus,
.hero__form-card .wpcf7-form select:focus,
.hero__form-card .wpcf7-form textarea:focus {
    outline: none;
    border-color: #d4a853;
    background: rgba(255, 255, 255, 0.15);
}

.hero__form-card .wpcf7-form select {
    color: rgba(255, 255, 255, 0.5);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.hero__form-card .wpcf7-form select option {
    color: #1a1a2e;
    background: #fff;
}

.hero__form-card .wpcf7-form textarea {
    resize: vertical;
    min-height: 70px;
}

.hero__form-card .wpcf7-form input[type="submit"] {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #d4a853, #b8860b);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-transform: none;
    letter-spacing: 0;
}

.hero__form-card .wpcf7-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #e0b563, #c4941d);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.4);
}

.hero__form-card .wpcf7-form .wpcf7-response-output {
    margin: 0.5rem 0 0;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.hero__form-card .wpcf7-form .wpcf7-not-valid-tip {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.hero__form-card .wpcf7-form .wpcf7-spinner {
    display: none;
}

/* === CONTACT SECTION CF7 (bottom of page) === */
.contact-form .wpcf7 {
    width: 100%;
}

.contact-form .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-form .wpcf7-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.contact-form .wpcf7-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-form .wpcf7-form .form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.contact-form .wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.contact-form .wpcf7-form input[type="text"],
.contact-form .wpcf7-form input[type="tel"],
.contact-form .wpcf7-form input[type="email"],
.contact-form .wpcf7-form select,
.contact-form .wpcf7-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-form .wpcf7-form input::placeholder,
.contact-form .wpcf7-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-form .wpcf7-form input:focus,
.contact-form .wpcf7-form select:focus,
.contact-form .wpcf7-form textarea:focus {
    outline: none;
    border-color: #d4a853;
    background: rgba(255, 255, 255, 0.12);
}

.contact-form .wpcf7-form select {
    color: rgba(255, 255, 255, 0.4);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.contact-form .wpcf7-form select option {
    color: #1a1a2e;
    background: #fff;
}

.contact-form .wpcf7-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .wpcf7-form input[type="submit"] {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #d4a853, #b8860b);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.contact-form .wpcf7-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #e0b563, #c4941d);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.4);
}

.contact-form .wpcf7-form .wpcf7-response-output {
    margin: 0.5rem 0 0;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.contact-form .wpcf7-form .wpcf7-not-valid-tip {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.contact-form .wpcf7-form .wpcf7-spinner {
    display: none;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero__form-card .hero__form-row,
    .contact-form .wpcf7-form .form-row {
        grid-template-columns: 1fr;
    }
}
