/* ===================================
   Contact Form 7 Custom Styles
   Matches the existing contact form design
   =================================== */

/* Form Container */
.wpcf7 {
    width: 100%;
}

.wpcf7-form {
    width: 100%;
}

/* Form Row - Two columns for name and email */
.wpcf7-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

/* Form Groups */
.wpcf7-form p {
    margin-bottom: 25px;
}

.wpcf7-form .form-row p {
    margin-bottom: 0;
}

/* Labels */
.wpcf7-form label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

/* Input Fields & Textarea */
.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 textarea,
.wpcf7-form select {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 18px;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Focus State */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form input[type="date"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: #38bdf8;
    background: rgba(15, 23, 42, 0.9);
}

/* Placeholder */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

/* Textarea */
.wpcf7-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"] {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    width: auto;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.wpcf7-form input[type="submit"]:active,
.wpcf7-form button[type="submit"]:active {
    transform: translateY(0);
}

/* Validation Messages */
.wpcf7-form .wpcf7-not-valid-tip {
    color: #f87171;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.wpcf7-form .wpcf7-not-valid {
    border-color: #f87171 !important;
}

/* Response Messages */
.wpcf7-form .wpcf7-response-output {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0 0 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
}

.wpcf7-form .wpcf7-mail-sent-ok {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.wpcf7-form .wpcf7-mail-sent-ng,
.wpcf7-form .wpcf7-validation-errors,
.wpcf7-form .wpcf7-acceptance-missing {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
}

.wpcf7-form .wpcf7-spam-blocked {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

/* Loading Spinner */
.wpcf7-form .wpcf7-spinner {
    margin-left: 10px;
    vertical-align: middle;
}

.wpcf7-form.submitting .wpcf7-spinner {
    visibility: visible;
    display: inline-block;
}

/* Acceptance (Checkbox/Terms) */
.wpcf7-form .wpcf7-acceptance {
    margin: 20px 0;
}

.wpcf7-form .wpcf7-acceptance label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    color: #94a3b8;
    cursor: pointer;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

/* File Upload */
.wpcf7-form input[type="file"] {
    padding: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
}

.wpcf7-form input[type="file"]::-webkit-file-upload-button {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 6px;
    padding: 8px 16px;
    color: #38bdf8;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7-form input[type="file"]::-webkit-file-upload-button:hover {
    background: rgba(56, 189, 248, 0.3);
}

/* Select Dropdown */
.wpcf7-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Radio & Checkbox Groups */
.wpcf7-form .wpcf7-radio,
.wpcf7-form .wpcf7-checkbox {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wpcf7-form .wpcf7-radio .wpcf7-list-item,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpcf7-form .wpcf7-radio input[type="radio"],
.wpcf7-form .wpcf7-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.wpcf7-form .wpcf7-radio .wpcf7-list-item-label,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item-label {
    color: #94a3b8;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .wpcf7-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .wpcf7-form .form-row p {
        margin-bottom: 25px;
    }

    .wpcf7-form input[type="submit"],
    .wpcf7-form button[type="submit"] {
        width: 100%;
    }
}

/* Screen Reader Text */
.wpcf7-form .screen-reader-response {
    position: absolute;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    width: 1px;
    margin: 0;
    padding: 0;
    border: 0;
}