/* ========================================
   CF7 FORMS - birdiechaser-cf7.css
   Contact Form 7 styling matched to login form design
   ======================================== */

/* Grid System */
.cf7-container {
    display: flex;
    flex-wrap: wrap;
    margin-right: -5px;
    margin-left: -5px;
}

.cf7-col-1, .cf7-col-2, .cf7-col-3, .cf7-col-4, .cf7-col-5, .cf7-col-6,
.cf7-col-7, .cf7-col-8, .cf7-col-9, .cf7-col-10, .cf7-col-11, .cf7-col-12 {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 5px;
    padding-left: 5px;
}

@media (min-width: 576px) {
    .cf7-col-1  { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .cf7-col-2  { flex: 0 0 16.66667%; max-width: 16.66667%; }
    .cf7-col-3  { flex: 0 0 25%; max-width: 25%; }
    .cf7-col-4  { flex: 0 0 33.33333%; max-width: 33.33333%; }
    .cf7-col-5  { flex: 0 0 41.66667%; max-width: 41.66667%; }
    .cf7-col-6  { flex: 0 0 50%; max-width: 50%; }
    .cf7-col-7  { flex: 0 0 58.33333%; max-width: 58.33333%; }
    .cf7-col-8  { flex: 0 0 66.66667%; max-width: 66.66667%; }
    .cf7-col-9  { flex: 0 0 75%; max-width: 75%; }
    .cf7-col-10 { flex: 0 0 83.33333%; max-width: 83.33333%; }
    .cf7-col-11 { flex: 0 0 91.66667%; max-width: 91.66667%; }
    .cf7-col-12 { flex: 0 0 100%; max-width: 100%; }
    
    .cf7-push-1  { margin-left: 8.333333%; }
    .cf7-push-2  { margin-left: 16.66667%; }
    .cf7-push-3  { margin-left: 25%; }
    .cf7-push-4  { margin-left: 33.33333%; }
    .cf7-push-5  { margin-left: 41.66667%; }
    .cf7-push-6  { margin-left: 50%; }
    .cf7-push-7  { margin-left: 58.33333%; }
    .cf7-push-8  { margin-left: 66.66667%; }
    .cf7-push-9  { margin-left: 75%; }
    .cf7-push-10 { margin-left: 83.33333%; }
    .cf7-push-11 { margin-left: 91.66667%; }
}

/* ========================================
   LABELS - Matching login form style exactly
   ======================================== */
.wpcf7-form label {
    display: block;
    color: #412818 !important; /* rgb(65, 40, 24) */
    font-family: var(--font-body);
    font-size: 18px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px !important;
    margin-top: 16px;
}

/* Remove top margin from first label */
.wpcf7-form label:first-of-type {
    margin-top: 0;
}

.wpcf7-form p {
    margin-bottom: 14px;
}

/* ========================================
   INPUT FIELDS - Matching login form style exactly
   ======================================== */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    font-family: var(--font-body);
    font-size: 15px !important;
    color: #412818;
    background-color: #ffffff !important; /* White like login */
    border: 3px solid #927f67 !important; /* rgb(146, 127, 103) muted brown */
    border-radius: 20px !important;
    padding: 12px 16px !important;
    height: 52px;
    transition: 0.2s ease;
    box-sizing: border-box;
}

.wpcf7 textarea {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

/* Input Hover States */
.wpcf7 input[type="text"]:hover,
.wpcf7 input[type="email"]:hover,
.wpcf7 input[type="tel"]:hover,
.wpcf7 input[type="url"]:hover,
.wpcf7 input[type="number"]:hover,
.wpcf7 input[type="date"]:hover,
.wpcf7 textarea:hover,
.wpcf7 select:hover {
    border-color: #703f06 !important;
}

/* Input Focus States */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    outline: none;
    border-color: #412818 !important;
    box-shadow: 0 0 0 2px rgba(65, 40, 24, 0.15);
}

/* Placeholder styling */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: #927f67;
    opacity: 0.8;
}

/* ========================================
   SUBMIT BUTTON - Matching login form style exactly
   ======================================== */
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"],
.wpcf7-form .wpcf7-submit {
    display: inline-block;
    outline: none;
    border: none !important;
    background-color: #412818 !important; /* rgb(65, 40, 24) */
    color: #fbe8c6 !important; /* rgb(251, 232, 198) */
    font-family: var(--font-body);
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 40px !important;
    border-radius: 25px !important;
    cursor: pointer;
    transition: 0.3s ease;
    min-width: 200px;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
    background-color: #703f06 !important;
    transform: translateY(-1px);
}

.wpcf7-form input[type="submit"]:active,
.wpcf7-form button[type="submit"]:active,
.wpcf7-form .wpcf7-submit:active {
    transform: translateY(0);
}

.wpcf7-form input[type="submit"]:focus,
.wpcf7-form button[type="submit"]:focus,
.wpcf7-form .wpcf7-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(65, 40, 24, 0.3);
}

/* Disabled/Submitting state */
.wpcf7-form.submitting input[type="submit"],
.wpcf7-form input[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   CHECKBOX & ACCEPTANCE - Matching login style
   ======================================== */
.wpcf7-form-control-wrap[data-name="terms-acceptance"],
.wpcf7-form-control-wrap[data-name="display_consent"],
.wpcf7 .wpcf7-acceptance {
    display: block;
    padding-top: 20px;
    padding-bottom: 20px;
}

.wpcf7-acceptance .wpcf7-list-item,
.wpcf7 .wpcf7-checkbox .wpcf7-list-item,
.wpcf7 .wpcf7-radio .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.wpcf7-acceptance .wpcf7-list-item label,
.wpcf7 .wpcf7-checkbox .wpcf7-list-item label,
.wpcf7 .wpcf7-radio .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin-top: 0;
}

.wpcf7-acceptance input[type="checkbox"],
.wpcf7 .wpcf7-checkbox input[type="checkbox"],
.wpcf7 .wpcf7-radio input[type="radio"] {
    margin-top: 4px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    accent-color: #412818;
    cursor: pointer;
}

/* Acceptance text styling */
.wpcf7-acceptance,
.wpcf7-acceptance span,
.wpcf7-acceptance label {
    font-size: 15px !important;
    line-height: 1.6;
}

.wpcf7-acceptance a {
    color: #b8860b !important;
    text-decoration: underline;
    font-weight: 500;
    transition: 0.2s ease;
}

.wpcf7-acceptance a:hover {
    color: #703f06 !important;
}

/* ========================================
   SELECT DROPDOWN
   ======================================== */
.wpcf7 select {
    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='%23412818' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px !important;
}

/* ========================================
   RESPONSE MESSAGES
   ======================================== */
.wpcf7 form .wpcf7-response-output {
    margin: 16px 0 0 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
}

/* Success */
.wpcf7 form.sent .wpcf7-response-output {
    background-color: rgba(76, 175, 80, 0.1);
    border: 2px solid #4caf50;
    color: #2e7d32;
}

/* Error states */
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
    background-color: rgba(220, 50, 50, 0.1);
    border: 2px solid #dc3232;
    color: #b71c1c;
}

/* Validation Error Tips */
.wpcf7-not-valid-tip {
    display: block;
    color: #dc3232;
    font-size: 14px;
    font-family: var(--font-body);
    margin-top: 6px;
}

/* Invalid input styling */
.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid,
.wpcf7 select.wpcf7-not-valid {
    border-color: #dc3232 !important;
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.wpcf7 .wpcf7-spinner {
    margin-left: 12px;
    vertical-align: middle;
}

/* ========================================
   FORM LAYOUT HELPERS
   ======================================== */
/* Full width inputs */
.cf7-full-width input,
.cf7-full-width textarea,
.cf7-full-width select {
    width: 100%;
}

/* Centered form */
.cf7-centered {
    max-width: 400px;
    margin: 0 auto;
}

/* Form spacing */
.cf7-spacing-tight .wpcf7-form p {
    margin-bottom: 8px;
}

.cf7-spacing-relaxed .wpcf7-form p {
    margin-bottom: 20px;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 575px) {
    .wpcf7-form input[type="submit"],
    .wpcf7-form button[type="submit"],
    .wpcf7-form .wpcf7-submit {
        width: 100%;
        min-width: unset;
    }
    
    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 input[type="tel"],
    .wpcf7 input[type="url"],
    .wpcf7 input[type="number"],
    .wpcf7 input[type="date"],
    .wpcf7 textarea,
    .wpcf7 select {
        padding: 10px 14px !important;
        height: 48px;
    }
}