/**************************************************************************************************************************
    THEME SPECIFIC CSS
**************************************************************************************************************************/
/**************************************************************************************************************************
    BOMBAY DRAGON SUBSCRIBE FORM — CLEAN REBUILD
**************************************************************************************************************************/

.bd-subscribe-wrap {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* Kill CF7's default paragraph/br wrappers everywhere inside our form */
.bd-subscribe-wrap .wpcf7-form p,
.bd-subscribe-wrap .wpcf7-form br {
    display: none !important;
    margin: 0 !important;
}

/* The pill container */
.bd-subscribe-form {
    display: flex;
    align-items: center;
    width: 100%;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(180, 49, 51, 0.12);
    padding: 6px;
    box-sizing: border-box;
}

/* Each field slot */
.bd-field {
    box-sizing: border-box;
}

.bd-field-name {
    flex: 1 1 35%;
    padding-left: 14px;
    border-right: 1px solid #eee;
}

.bd-field-email {
    flex: 1 1 45%;
    padding-left: 14px;
}

.bd-field-submit {
    flex: 0 0 auto;
    padding-left: 6px;
}

/* CF7 wraps every field in this span — strip it down so it doesn't add its own box model */
.bd-field .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* Inputs: no border/background, just text */
.bd-field input[type="text"],
.bd-field input[type="email"] {
    display: block;
    width: 100%;
    height: 46px;
    line-height: 46px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    font-size: 15px;
    font-family: inherit;
    color: #222222;
    box-shadow: none;
    outline: none;
    box-sizing: border-box;
}

.bd-field input[type="text"]:focus,
.bd-field input[type="email"]:focus {
    outline: none;
    box-shadow: none;
    background: transparent;
}

/* Submit button */
.bd-field-submit input[type="submit"] {
    display: block;
    height: 46px;
    line-height: 1;
    padding: 0 28px;
    margin: 0;
    border: none;
    border-radius: 100px;
    background: linear-gradient(135deg, #b43133, #8f2628);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bd-field-submit input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(180, 49, 51, 0.3);
}

/* Spinner — hidden by default, CF7 toggles it visible during actual AJAX submit */
.bd-field-submit .wpcf7-spinner {
    display: none;
    width: 20px;
    height: 20px;
    margin: 0 0 0 8px;
    vertical-align: middle;
}

.bd-field-submit .wpcf7-spinner.is-active {
    display: inline-block;
}

/* Turnstile widget — sits below the pill, centered, scaled down slightly */
.bd-subscribe-wrap .wpcf7-turnstile.cf-turnstile {
    display: flex;
    justify-content: center;
    transform: scale(0.85);
    transform-origin: center top;
}

/* Response message */
.bd-subscribe-wrap .wpcf7-response-output {
    width: 100%;
    margin: 0;
    padding: 10px 16px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Mobile: stack everything */
@media (max-width: 640px) {
    .bd-subscribe-form {
        flex-direction: column;
        align-items: stretch;
        border-radius: 20px;
        padding: 14px;
        gap: 10px;
        background: #ffffff;
    }

    .bd-field-name,
    .bd-field-email,
    .bd-field-submit {
        flex: 1 1 100%;
        width: 100%;
        padding-left: 0;
        border-right: none;
    }

    .bd-field-name {
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

    .bd-field input[type="text"],
    .bd-field input[type="email"] {
        background: #f7f7f7;
        border-radius: 10px;
        padding: 0 12px;
    }

    .bd-field-submit input[type="submit"] {
        width: 100%;
        border-radius: 100px;
    }

    .bd-subscribe-wrap .wpcf7-turnstile.cf-turnstile {
        transform: scale(0.9);
    }
}