#gform_20 {
    --votp-ink: #14213D;
    --votp-primary: #e95328;
    --votp-primary-dark: #2C1F5C;
    --votp-teal: #0E8974;
    --votp-border: #E4E6EF;
    --votp-coral: #D64545;
    --votp-muted: #5B5F73;
}

#gform_20 .gfield {
    margin: 0;
}

.emailotp{padding:0px !important;}

/* Email field expands to full width once OTP verification is complete */
#gform_20 .corporate-email.otp-verified-full {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

@media (max-width: 560px) {
    #gform_wrapper_20 {
        padding: 24px 18px;
        border-radius: 12px;
    }

    #gform_20 #gform_fields_20 {
        grid-template-columns: 1fr;
    }

    #gform_20 .gfield--width-half {
        grid-column: 1 / -1;
    }
}




/* Send / Resend / Verify buttons */
#gform_20 .send-otp-btn,
#gform_20 .verify-otp-btn {
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    background: var(--votp-primary);
    border: none;
    border-radius: 6px !important;
    padding: 10px 22px;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease, transform 0.1s ease;
}

#gform_20 .send-otp-btn:hover:not(:disabled),
#gform_20 .verify-otp-btn:hover:not(:disabled) {
    background: var(--votp-primary-dark);
}

#gform_20 .send-otp-btn:active:not(:disabled),
#gform_20 .verify-otp-btn:active:not(:disabled) {
    transform: scale(0.98);
}

#gform_20 .send-otp-btn:disabled,
#gform_20 .verify-otp-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

#gform_20 .send-otp-btn.otp-loading::after,
#gform_20 .verify-otp-btn.otp-loading::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: votp-spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes votp-spin {
    to { transform: rotate(360deg); }
}

/* Resend cooldown progress ring */
#gform_20 .send-otp-btn.otp-cooldown {
    position: relative;
    padding-right: 34px;
}

#gform_20 .send-otp-btn.otp-cooldown::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: conic-gradient(rgba(255, 255, 255, 0.9) calc(var(--otp-progress, 0) * 1%), rgba(255, 255, 255, 0.25) 0);
}

/* Submit button */
#gform_20 input[type="submit"] {
    font-family: var(--votp-font-label);
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    background: var(--votp-ink);
    border: none;
    border-radius: 24px;
    padding: 14px;
    width: 100%;
    cursor: pointer;
    transition: background 0.15s ease;
}

#gform_20 input[type="submit"]:hover:not(:disabled) {
    background: #0d1730;
}

#gform_20 input[type="submit"]:disabled {
    background: #B4B7C4;
    cursor: not-allowed;
}

/* Segmented OTP boxes */
#gform_20 .otp-boxes {
    display: flex;
    gap: 8px;
    margin: 4px 0 6px;
}

#gform_20 .otp-box {
    width: 44px !important;
    height: 44px !important;
    border-radius: 8px;
    border: 1.5px solid var(--votp-border);
    text-align: center;
    font-family: var(--votp-font-mono);
    font-weight: 500;
    font-size: 20px;
    color: var(--votp-ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#gform_20 .otp-box:focus {
    outline: none;
    border-color: var(--votp-teal);
    box-shadow: 0 0 0 3px rgba(14, 137, 116, 0.15);
}

#gform_20 .otp-field input.otp-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Inline messages (replace alert()) */
#gform_20 .otp-inline-msg {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    font-family: var(--votp-font-body);
}

#gform_20 .otp-msg-success {
    background: #E5F3F0;
    color: var(--votp-teal);
    border: 1px solid #BFE3DA;
}

#gform_20 .otp-msg-error {
    background: #FBEAEA;
    color: var(--votp-coral);
    border: 1px solid #F2C4C4;
}

#gform_20 .otp-field {
    transition: all 0.3s ease;
}

@media (max-width: 480px) {
    #gform_20 .otp-box {
        width: 38px;
        height: 46px;
        font-size: 18px;
    }
}