/* ===============================
   Contact Form 7 – Dark UI (V2)
   =============================== */

/* Form wrapper */
.wpcf7 form {
    max-width: 100%;
    color: #ffffff;
}




/* Paragraph spacing */
.wpcf7 p {
    margin-bottom: 14px;
}

/* Text + Email fields (underline style) */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"] {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    font-size: 16px;
    padding: 8px 4px;
    line-height: 1.4;
    transition: border-color 0.25s ease;
}

/* Focus state for text/email */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus {
    outline: none;
    border-bottom-color: #ffffff;
}

/* DROPDOWN/SELECT fields - clean underline style matching text fields */
.wpcf7 select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    font-size: 16px;
    padding: 8px 4px;
    padding-right: 28px;
    line-height: 1.4;
    transition: border-color 0.25s ease;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
}

/* Add dropdown triangle using wrapper */
.wpcf7 .wpcf7-form-control-wrap {
    position: relative;
    display: block;
}

.wpcf7 .wpcf7-form-control-wrap:has(select)::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(255, 255, 255, 0.65);
    pointer-events: none;
}

/* Dropdown focus */
.wpcf7 select:focus {
    outline: none;
    border-bottom-color: #ffffff;
}

.wpcf7 .wpcf7-form-control-wrap:has(select:focus)::after {
    border-top-color: #ffffff;
}

/* Dropdown options */
.wpcf7 select option {
    background: #0b1f3a;
    color: #ffffff;
    padding: 8px;
}

/* First option ("Select an option...") styling */
.wpcf7 select option:first-child {
    color: rgba(255, 255, 255, 0.65);
}

/* TEXTAREA – boxed, 3-line height */
.wpcf7 textarea {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #ffffff;
    font-size: 16px;
    padding: 10px;
    line-height: 1.4;
    min-height: 4.2em; /* ~3 lines */
    resize: none;
    transition: border-color 0.25s ease;
}

/* Textarea focus */
.wpcf7 textarea:focus {
    outline: none;
    border-color: #ffffff;
}

/* Placeholder text */
.wpcf7 ::placeholder {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

/* File upload */
.wpcf7 input[type="file"] {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    margin-top: 6px;
    margin-bottom: 18px;
    border: none;
}

/* File upload button (Chrome / Edge) */
.wpcf7 input[type="file"]::-webkit-file-upload-button {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.45);
    padding: 6px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.wpcf7 input[type="file"]::-webkit-file-upload-button:hover {
    background: #ffffff;
    color: #0b1f3a;
}

/* Submit button */
.wpcf7 input[type="submit"] {
    background: #ffffff;
    color: #0b1f3a;
    border: none;
    padding: 12px 36px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.25s ease;
    margin-top: 8px;
}

.wpcf7 input[type="submit"]:hover {
    background: rgba(255, 255, 255, 0.85);
}

/* Validation error state */
.wpcf7-not-valid {
    border-color: #ff6b6b !important;
}

/* Error message text */
.wpcf7-not-valid-tip {
    color: #ffb3b3;
    font-size: 13px;
    margin-top: 6px;
}

/* Success message */
.wpcf7-response-output {
    border: none;
    color: #b6ffdf;
    font-size: 15px;
    padding: 12px 0;
}
