/* =========================================================
   IGNISVIGIL — CF7 OTP / CAPTCHA
   CLEAN INDUSTRIAL FIRE SAFETY THEME
   BLUE:   #0075FF
   ORANGE: #EF7F1A
   TEXT:   #333333
   MUTED:  #667085
   BG:     #F7F9FC
========================================================= */


/* =========================================================
   MAIN WRAPPER
========================================================= */

.wpcf7 form .cf7otp-wrapper {
    margin-top: 20px;
    padding: 20px;
    background: #FFFFFF;
    border: 1px solid #E6EAF0;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 117, 255, 0.05);

    display: flex;
    flex-direction: column;
    gap: 16px;

    box-sizing: border-box;
}


/* =========================================================
   FLEX ROWS
========================================================= */

.wpcf7 form .cf7otp-wrapper .cf7otp-captcha-row,
.wpcf7 form .cf7otp-wrapper .cf7otp-otp-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}


/* =========================================================
   CAPTCHA IMAGE
========================================================= */

.wpcf7 form .cf7otp-wrapper .cf7otp-captcha-img {
    height: 55px;

    border: 1px solid #D9E0E8;
    border-radius: 5px;

    background: #F7F9FC;

    object-fit: contain;
}


/* =========================================================
   CAPTCHA REFRESH BUTTON
========================================================= */

.wpcf7 form .cf7otp-wrapper .cf7otp-captcha-refresh {
    height: 42px;
    width: 42px;
    min-width: 42px;

    font-size: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #D9E0E8;
    border-radius: 5px;

    background: #FFFFFF;
    color: #0075FF;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;

    flex: 0 0 auto;
}

.wpcf7 form .cf7otp-wrapper .cf7otp-captcha-refresh:hover {
    background: #0075FF;
    color: #FFFFFF;
    border-color: #0075FF;
}


/* =========================================================
   INPUT FIELDS
========================================================= */

.wpcf7 form .cf7otp-wrapper input[type="text"].cf7otp-captcha-input,
.wpcf7 form .cf7otp-wrapper input[type="text"].cf7otp-otp-input {
    height: 42px;

    width: 140px;
    max-width: 140px;

    flex: 0 0 140px;

    margin: 0;
    padding: 0 12px;

    border: 1px solid #D9E0E8;
    border-radius: 5px;

    background: #FFFFFF;
    color: #333333;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;

    text-align: center;

    outline: none;
    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* CAPTCHA CHARACTER SPACING */

.wpcf7 form .cf7otp-wrapper input[type="text"].cf7otp-captcha-input {
    letter-spacing: 2px;
}


/* OTP CHARACTER SPACING */

.wpcf7 form .cf7otp-wrapper input[type="text"].cf7otp-otp-input {
    letter-spacing: 4px;
}


/* INPUT FOCUS */

.wpcf7 form .cf7otp-wrapper input[type="text"].cf7otp-captcha-input:focus,
.wpcf7 form .cf7otp-wrapper input[type="text"].cf7otp-otp-input:focus {
    border-color: #0075FF;

    box-shadow:
        0 0 0 3px rgba(0, 117, 255, 0.10);
}


/* =========================================================
   BUTTON BASE
========================================================= */

.wpcf7 form .cf7otp-wrapper button.cf7otp-send-btn,
.wpcf7 form .cf7otp-wrapper button.cf7otp-verify-btn,
.wpcf7 form .cf7otp-wrapper button.cf7otp-resend-btn,
.wpcf7 form .cf7otp-wrapper input[type="button"].cf7otp-send-btn,
.wpcf7 form .cf7otp-wrapper input[type="button"].cf7otp-verify-btn,
.wpcf7 form .cf7otp-wrapper input[type="button"].cf7otp-resend-btn {

    width: auto;
    min-width: 120px;
    height: 42px;

    margin: 0;
    padding: 0 20px;

    border-radius: 5px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    align-self: flex-start;
    flex: 0 0 auto;

    white-space: nowrap;

    box-sizing: border-box;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   SEND OTP — IGNISVIGIL BLUE
========================================================= */

.wpcf7 form .cf7otp-wrapper .cf7otp-send-btn {
    background: #0075FF;
    color: #FFFFFF;
    border: 1px solid #0075FF;
}

.wpcf7 form .cf7otp-wrapper .cf7otp-send-btn:hover {
    background: #0068E6;
    border-color: #0068E6;

    box-shadow:
        0 3px 8px rgba(0, 117, 255, 0.18);
}


/* =========================================================
   VERIFY OTP — IGNISVIGIL ORANGE
========================================================= */

.wpcf7 form .cf7otp-wrapper .cf7otp-verify-btn {
    background: #EF7F1A;
    color: #FFFFFF;
    border: 1px solid #EF7F1A;
}

.wpcf7 form .cf7otp-wrapper .cf7otp-verify-btn:hover {
    background: #D96F10;
    border-color: #D96F10;

    box-shadow:
        0 3px 8px rgba(239, 127, 26, 0.18);
}


/* =========================================================
   RESEND OTP — OUTLINE BLUE
========================================================= */

.wpcf7 form .cf7otp-wrapper .cf7otp-resend-btn {
    background: #FFFFFF;
    color: #0075FF;
    border: 1px solid #0075FF;
}

.wpcf7 form .cf7otp-wrapper .cf7otp-resend-btn:hover {
    background: #0075FF;
    color: #FFFFFF;
    border-color: #0075FF;
}


/* =========================================================
   DISABLED STATES
========================================================= */

.wpcf7 form .cf7otp-wrapper button:disabled,
.wpcf7 form .cf7otp-wrapper input[type="button"]:disabled {

    background: #EEF1F5;
    color: #98A2B3;

    border: 1px solid #D9E0E8;

    cursor: not-allowed;
    opacity: 0.8;

    box-shadow: none;
}


/* =========================================================
   STATUS / NOTIFICATIONS
========================================================= */

.wpcf7 form .cf7otp-wrapper .cf7otp-status {

    font-size: 13px;
    line-height: 1.6;

    padding: 12px 15px;

    border-radius: 5px;

    background: #F7F9FC;

    border-left: 4px solid #0075FF;

    color: #667085;
}


/* =========================================================
   SUCCESS
========================================================= */

.wpcf7 form .cf7otp-wrapper .cf7otp-status.success {

    background: #F0FAF5;

    border-left-color: #20A46B;

    color: #18794E;
}


/* =========================================================
   ERROR
========================================================= */

.wpcf7 form .cf7otp-wrapper .cf7otp-status.error {

    background: #FFF5F4;

    border-left-color: #E84C3D;

    color: #C43227;
}


/* =========================================================
   WARNING
========================================================= */

.wpcf7 form .cf7otp-wrapper .cf7otp-status.warning {

    background: #FFF8EF;

    border-left-color: #EF7F1A;

    color: #A85A0A;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.wpcf7 form .cf7otp-wrapper input::placeholder {
    color: #98A2B3;
    opacity: 1;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .wpcf7 form .cf7otp-wrapper {
        padding: 16px;
        gap: 14px;
    }

    .wpcf7 form .cf7otp-wrapper .cf7otp-captcha-row,
    .wpcf7 form .cf7otp-wrapper .cf7otp-otp-row {
        width: 100%;
        align-items: stretch;
    }

    .wpcf7 form .cf7otp-wrapper input[type="text"].cf7otp-captcha-input,
    .wpcf7 form .cf7otp-wrapper input[type="text"].cf7otp-otp-input,
    .wpcf7 form .cf7otp-wrapper button.cf7otp-send-btn,
    .wpcf7 form .cf7otp-wrapper button.cf7otp-verify-btn,
    .wpcf7 form .cf7otp-wrapper button.cf7otp-resend-btn {

        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
    }

    .wpcf7 form .cf7otp-wrapper .cf7otp-captcha-img {
        max-width: 100%;
    }

    .wpcf7 form .cf7otp-wrapper .cf7otp-captcha-refresh {
        flex: 0 0 42px;
    }
}