/* ==========================================================================
   KING MARS LOGISTICS - CONTACT FORM 7 LUXURY DARK & GOLD STYLING
   ========================================================================== */

/* Wrapper & Form Layout */
.wpcf7 {
    position: relative;
    width: 100%;
}

.wpcf7 form {
    position: relative;
}

/* Form Controls (Inputs, Selects, Textareas) */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="date"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100% !important;
    background-color: #070d18 !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-family: inherit !important;
    padding: 12px 16px !important;
    line-height: 1.5 !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.35) !important;
    background-color: #0a1324 !important;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: #64748b !important;
    font-size: 13px !important;
}

/* Select specific styling */
.wpcf7 select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
    padding-right: 40px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.wpcf7 select option {
    background-color: #0c1626;
    color: #ffffff;
    padding: 10px;
}

/* Compact Form Field and Label Spacing */
.wpcf7 br,
.wpcf7 form br {
    display: none !important;
}

.wpcf7 p {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    padding: 0 !important;
}

.wpcf7 label,
.wpcf7 .form-label {
    display: block !important;
    color: #cbd5e1 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    margin-top: 0 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.3px;
}

.wpcf7-form-control-wrap {
    display: block !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    width: 100% !important;
}

/* Submit Buttons in CF7 */
.wpcf7 input[type="submit"] {
    width: 100% !important;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%) !important;
    color: #070d18 !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    padding: 16px 24px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: block !important;
    text-align: center !important;
    margin-top: 10px !important;
}

.wpcf7 input[type="submit"]:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d4af37 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5) !important;
}

/* CF7 Spinner Loader */
.wpcf7 .ajax-loader {
    position: absolute;
    right: 20px;
    bottom: 25px;
    border-radius: 50%;
}

.wpcf7 form.submitting .ajax-loader {
    visibility: visible;
}

/* Status & Validation Messages */
.wpcf7 .wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 16px 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

/* Success Notice */
.wpcf7 form.sent .wpcf7-response-output {
    border: 1px solid #10b981 !important;
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

/* Error / Failed Notice */
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    border: 1px solid #ef4444 !important;
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

/* Validation Errors on individual fields */
.wpcf7 .wpcf7-not-valid-tip {
    color: #f87171 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-top: 4px !important;
    display: block !important;
}

.wpcf7 .wpcf7-not-valid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4) !important;
}

/* WhatsApp Handoff Notice Banner (when WhatsApp redirect is triggered) */
.km-cf7-whatsapp-banner {
    background: #092e20;
    border: 1px solid #25d366;
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 18px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
    animation: fadeIn 0.4s ease-in-out;
}

.km-cf7-whatsapp-banner .km-wa-btn {
    background: #25d366;
    color: #070d18;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.km-cf7-whatsapp-banner .km-wa-btn:hover {
    background: #1eb956;
    transform: scale(1.03);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
