/* Container inside a card-like block */
.wpcf7 {
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    border: 1px solid #dbe3ef;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
    border-radius: 16px;
    padding: .5rem 2rem;
    margin: 2rem auto;
}

/* Layout for each field */
.wpcf7-form p {
    margin-bottom: 1.25rem;
}

/* Labels */
.wpcf7-form label {
    font-weight: 500;
    font-size: .95rem;
    color: #1e293b;
    display: block;
    margin-bottom: .5rem;
}

/* Inputs and textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="file"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: .7rem .9rem;
    font-size: .95rem;
    font-family: 'Avenir Next', sans-serif;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Focus state */
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

/* File input */
.wpcf7 input[type="file"] {
    padding: .4rem;
    font-size: .9rem;
    border-radius: 10px;
}

/* Submit button styled like .view-button */
.wpcf7 input[type="submit"] {
    padding: .7rem 1rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.wpcf7 input[type="submit"]:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* Messages */
.wpcf7-response-output {
    margin-top: 1rem;
    padding: .75rem 1rem;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
}

.wpcf7-mail-sent-ok {
    border: 2px solid #22c55e;
    background: #ecfdf5;
    color: #166534;
}

.wpcf7-validation-errors {
    border: 2px solid #dc2626;
    background: #fef2f2;
    color: #991b1b;
}

.wpcf7-not-valid-tip {
    font-size: .85rem;
    color: #dc2626;
    margin-top: .25rem;
    display: block;
}

/* Responsive */
@media (max-width: 600px) {
    .wpcf7 {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .wpcf7 input[type="submit"] {
        width: 100%;
        text-align: center;
    }
}

/* Style the "Choose File" button inside file inputs */
.wpcf7 input[type="file"]::file-selector-button {
    padding: 0.3rem .5rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.wpcf7 input[type="file"]::file-selector-button:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}