/* NXT Razorpay Form V3 - Conclave design */

/*
 * THEME OVERRIDE RESET (Evenio theme)
 * Theme file: evenio/assets/css/default.css applies globally:
 *   input[type="text"], input[type="email"] etc. { margin-bottom: 30px; padding: 24px 20px; }
 * That causes extra space between our fields and can misalign the coupon Apply button.
 * These resets MUST come first and use form ID for maximum specificity so they win.
 */
#nxt-razorpay-booking-form-v3 input[type="text"],
#nxt-razorpay-booking-form-v3 input[type="email"],
#nxt-razorpay-booking-form-v3 input[type="tel"],
#nxt-razorpay-booking-form-v3 input[type="number"] {
    margin: 0 !important;
    margin-bottom: 0 !important;
}
#nxt-razorpay-booking-form-v3 button[type="button"],
#nxt-razorpay-booking-form-v3 button[type="submit"] {
    margin: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1 !important;
}

.nxt-razorpay-form-wrapper-v3 {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    padding: 32px 24px 40px;
    border-radius: 12px;
    box-sizing: border-box;
}

.nxt-razorpay-container-v3 { width: 100%; }

.nxt-form-header-v3 { text-align: center; margin-bottom: 28px; }

.nxt-form-title-v3 {
    font-size: 22px;
    font-weight: 700;
    color: #c41e3a;
    margin: 0 0 12px 0;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nxt-form-subtitle-v3 {
    font-size: 14px;
    color: #000000;
    margin: 0;
    line-height: 1.5;
}

.nxt-razorpay-form-v3 { width: 100%; }

/* Force consistent spacing - override theme */
#nxt-razorpay-booking-form-v3 .nxt-form-fields-v3 {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

#nxt-razorpay-booking-form-v3 .nxt-form-fields-v3 > * {
    margin: 0 0 10px 0 !important;
}

#nxt-razorpay-booking-form-v3 .nxt-form-fields-v3 > *:last-child {
    margin-bottom: 0 !important;
}

.nxt-form-fields-v3 {
    display: flex;
    flex-direction: column;
    gap: 10px !important;
}

.nxt-form-field-v3 {
    margin: 0 !important;
    padding: 0 !important;
}

.nxt-form-field-v3 input[type="text"],
.nxt-form-field-v3 input[type="email"],
.nxt-form-field-v3 input[type="tel"] {
    width: 100%;
    padding: 14px 18px !important;
    margin: 0 !important;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #111827;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    height: 48px;
    line-height: 20px;
}

.nxt-form-field-v3 input::placeholder { color: #9ca3af; }

.nxt-form-field-v3 input:focus { border-color: #c41e3a; }

.nxt-form-row-v3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    margin: 0 !important;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    min-height: 48px;
    box-sizing: border-box;
}

.nxt-row-label-v3 { font-size: 15px; color: #000; font-weight: 500; }

.nxt-persons-controls-v3 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nxt-counter-btn-v3 {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    color: #374151;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.nxt-counter-btn-v3:hover:not(:disabled) { background: #d1d5db; }

.nxt-counter-btn-v3:disabled { opacity: 0.4; cursor: not-allowed; }

.nxt-counter-value-v3 {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    min-width: 24px;
    text-align: center;
}

.nxt-total-value-v3 { font-size: 16px; font-weight: 700; color: #000; }

/* Coupon row: grid forces input + button into same 48px row */
.nxt-coupon-row-v3 {
    display: grid !important;
    grid-template-columns: 1fr auto auto !important;
    grid-auto-rows: 48px !important;
    gap: 10px !important;
    align-items: stretch !important;
    margin: 0 !important;
}

.nxt-coupon-row-v3 input {
    width: 100% !important;
    flex: 1;
    padding: 0 18px !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    color: #111827 !important;
    box-sizing: border-box !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    line-height: 1 !important;
}

.nxt-coupon-apply-btn-v3 {
    padding: 0 24px !important;
    margin: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    background: #000000;
    border: none !important;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.nxt-coupon-apply-btn-v3:hover:not(:disabled) { background: #374151; }

.nxt-coupon-apply-btn-v3:disabled { opacity: 0.7; cursor: not-allowed; }

.nxt-coupon-remove-v3 {
    padding: 0 16px !important;
    height: 48px !important;
    min-height: 48px !important;
    background: #6b7280;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.nxt-coupon-message-v3 { margin-top: 8px; font-size: 13px; }

.nxt-coupon-message-v3.success { color: #059669; }

.nxt-coupon-message-v3.error { color: #dc2626; }

.nxt-checkbox-wrap-v3 { margin-top: 4px; }

.nxt-checkbox-label-v3 {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #000;
    line-height: 1.5;
}

.nxt-checkbox-label-v3 input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    min-width: 18px;
    cursor: pointer;
    accent-color: #c41e3a;
}

.nxt-checkbox-label-v3 a { color: #c41e3a; text-decoration: underline; }

.nxt-submit-btn-v3 {
    width: 100%;
    margin-top: 24px;
    padding: 16px 24px;
    background: #c41e3a;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.nxt-submit-btn-v3:hover:not(:disabled) { background: #a01830; }

.nxt-submit-btn-v3:disabled { opacity: 0.8; cursor: not-allowed; }

.nxt-payment-disabled-v3 {
    margin-top: 20px;
    padding: 14px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    font-size: 14px;
    color: #92400e;
}

.nxt-payment-notice-v3 {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #dc2626;
    border-radius: 8px;
    font-size: 14px;
    color: #991b1b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nxt-notice-close-v3 {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #991b1b;
    padding: 0 4px;
    line-height: 1;
}

/* Inline success block - below form, no overlay */
.nxt-success-block-v3 {
    margin-top: 24px;
    padding: 24px;
    background: #ecfdf5;
    border: 1px solid #059669;
    border-radius: 12px;
    text-align: center;
}

.nxt-success-icon-v3 {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: #059669;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nxt-success-title-v3 { font-size: 18px; font-weight: 700; color: #065f46; margin: 0 0 8px 0; }

.nxt-success-message-v3 { font-size: 14px; color: #047857; margin: 0 0 16px 0; line-height: 1.5; }

.nxt-success-close-v3 {
    padding: 10px 20px;
    background: #059669;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.nxt-success-close-v3:hover { background: #047857; }

/* Override theme/WordPress - force spacing and alignment */
#nxt-razorpay-booking-form-v3 .nxt-form-field-v3,
#nxt-razorpay-booking-form-v3 .nxt-form-field-v3 input {
    margin: 0 !important;
}
#nxt-razorpay-booking-form-v3 .nxt-form-fields-v3 > .nxt-form-field-v3 {
    margin-bottom: 10px !important;
}
#nxt-razorpay-booking-form-v3 .nxt-form-fields-v3 > .nxt-form-field-v3:last-child,
#nxt-razorpay-booking-form-v3 .nxt-form-fields-v3 > .nxt-form-row-v3:last-child,
#nxt-razorpay-booking-form-v3 .nxt-form-fields-v3 > .nxt-checkbox-wrap-v3:last-child {
    margin-bottom: 0 !important;
}
