/* ========================================
   BNI Online - Login Page Styles
   ======================================== */

/* ========================================
   Page Load Animations
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes lineExpand {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Base reveal class - elements start invisible */
.reveal {
    opacity: 0;
}

/* Animation classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s ease forwards;
}

.animate-slide-down {
    animation: slideDown 0.5s ease forwards;
}

.animate-slide-right {
    animation: slideRight 0.6s ease forwards;
}

.animate-slide-left {
    animation: slideLeft 0.6s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease forwards;
}

.animate-line-expand {
    animation: lineExpand 0.8s ease forwards;
}

/* Delay classes for staggered animations */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

.delay-6 {
    animation-delay: 0.6s;
}

.delay-7 {
    animation-delay: 0.7s;
}

.delay-8 {
    animation-delay: 0.8s;
}

/* Header animation specific */
.header-content.reveal {
    opacity: 0;
}

.header-line.reveal {
    width: 0;
    opacity: 1;
    /* Override base reveal opacity for line */
}

/* Page exit animation */
body.page-exit {
    animation: fadeOut 0.3s ease forwards;
}

/* Instant reveal for internal navigation (no flash) */
body.instant-reveal .reveal {
    opacity: 1 !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
}

body.instant-reveal .header-line.reveal {
    width: 100% !important;
}

body.page-exit * {
    pointer-events: none;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
    }

    .animate-fade-in,
    .animate-slide-up,
    .animate-slide-down,
    .animate-slide-right,
    .animate-slide-left,
    .animate-scale-in {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .animate-line-expand {
        animation: none;
        width: 100%;
    }
}

:root {
    color-scheme: light only;
    --primary-color: #C91C2E;
    --primary-light: rgba(201, 28, 46, 0.3);
    --text-dark: #22242F;
    --text-gray: #4D4D4D;
    --text-light: #C4C7CE;
    --border-color: #79747E;
    --input-bg: #F9FAFB;
    --input-border: #E5E7EB;
    --white: #F9FAFB;
    --black: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--white);
    min-height: 100vh;
}

/* ========================================
   Global Focus Styles (Override Bootstrap)
   ======================================== */

*:focus {
    outline: none !important;
    box-shadow: none !important;
}

button:focus,
button:focus-visible,
.btn:focus,
.btn:focus-visible,
input:focus,
input:focus-visible {
    outline: 1px solid var(--primary-color) !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}

.btn-primary:focus,
.btn-primary:focus-visible {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    outline: 1px solid var(--primary-color) !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}

/* ========================================
   Header Styles
   ======================================== */

.header {
    padding: 10px 0 0 0;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bni-logo {
    height: 50px;
    width: auto;
}

.online-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: var(--text-gray);
    line-height: 1;
}

.login-btn-wrapper {
    display: flex;
    align-items: center;
}

.btn-login-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 15px;
    padding: 12px 20px 12px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login-header:hover {
    border-color: var(--primary-color);
    background: rgba(201, 28, 46, 0.02);
}

.btn-login-header:focus,
.btn-login-header:focus-visible {
    border: 1px solid var(--primary-color) !important;
    outline: none !important;
    box-shadow: none !important;
}

.profile-icon {
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-icon svg {
    width: 18px;
    height: 18px;
}

.btn-login-header span:last-child {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    letter-spacing: -0.28px;
    white-space: nowrap;
}

.header-line {
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    margin-top: 10px;
}

/* ========================================
   Main Content
   ======================================== */

.main-content {
    padding: 50px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Login Card
   ======================================== */

.login-card {
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    padding: 35px 40px;
    margin-bottom: 40px;
    background: var(--white);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.step-number {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), #E8475A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.step-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-color);
    margin: 0;
}

.step-description {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.step-description strong {
    color: var(--black);
    font-weight: 700;
}

/* ========================================
   Form Elements
   ======================================== */

.form-group {
    margin-bottom: 25px;
}

.text-field {
    position: relative;
    max-width: 350px;
}

.field-label {
    position: absolute;
    top: -10px;
    left: 12px;
    background: var(--white);
    padding: 0 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #1C1B1F;
    z-index: 1;
}

.field-label .required {
    color: var(--primary-color);
}

.phone-input {
    width: 100%;
    height: 56px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #1C1B1F;
    background: var(--white);
    transition: border-color 0.3s ease;
}

.phone-input[readonly],
.readonly-input {
    background-color: #E9ECEF !important;
    color: var(--text-gray);
    cursor: not-allowed;
    border-color: #CED4DA;
}

.phone-input:focus,
.phone-input:focus-visible {
    outline: none !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: none !important;
}

.phone-input::placeholder {
    color: #1C1B1F;
}

/* ========================================
   Buttons
   ======================================== */

.btn-submit {
    width: 336px;
    height: 56px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #A8172A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 28, 46, 0.3);
}

.btn-submit:focus,
.btn-submit:focus-visible {
    background-color: var(--primary-color) !important;
    outline: 1px solid var(--primary-color) !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}

.btn-verify {
    width: 338px;
    /* Width to align with OTP inputs */
    height: 56px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-verify:hover {
    background-color: #A8172A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 28, 46, 0.3);
}

.btn-verify:focus,
.btn-verify:focus-visible {
    background-color: var(--primary-color) !important;
    outline: 1px solid var(--primary-color) !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
    max-width: 538px;
    /* Match OTP section width: 6*48px + 5*10px + 20px gap + 100px timer */
}

.btn-resend {
    width: 185px;
    /* Width to align with timer box */
    height: 56px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-light);
    cursor: not-allowed;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-resend:not(:disabled) {
    background-color: var(--white);
    border-color: var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
}

.btn-resend:not(:disabled):hover {
    background-color: rgba(201, 28, 46, 0.05);
}

.btn-resend:focus,
.btn-resend:focus-visible {
    outline: 1px solid var(--primary-color) !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}

/* ========================================
   Back Link
   ======================================== */

.back-link-wrapper {
    margin-top: 25px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #A8172A;
    text-decoration: underline;
}

.back-link svg {
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(-3px);
}

/* ========================================
   OTP Section
   ======================================== */

.otp-section {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Match button-group gap */
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

/* .timer-resend-group removed */

.otp-inputs {
    display: flex;
    gap: 10px;
}

.otp-input {
    width: 48px;
    height: 56px;
    background-color: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 8px;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.otp-input:focus,
.otp-input:focus-visible {
    outline: none !important;
    border: 2px solid var(--primary-color) !important;
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(201, 28, 46, 0.1) !important;
}

.otp-input.filled {
    border-color: var(--primary-color);
    background-color: var(--white);
}

.timer-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 185px;
    /* Match btn-resend width */
    height: 56px;
    background-color: rgba(201, 28, 46, 0.08);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 0 16px;
    justify-content: center;
    flex-shrink: 0;
}

.timer-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
}

/* ========================================
   Video Section
   ======================================== */

.video-section {
    text-align: center;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
}

.play-btn:focus,
.play-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.play-btn:focus svg circle,
.play-btn:focus-visible svg circle {
    stroke: white;
    stroke-width: 3px;
}

.video-link {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.video-link:hover {
    color: #A8172A;
    text-decoration: underline;
}

/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 1200px) {
    .header-content {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    .header-content {
        padding: 0 20px;
    }

    .online-text {
        font-size: 30px;
    }

    .bni-logo {
        height: 45px;
    }

    .login-card {
        padding: 25px 20px;
    }

    .video-section {
        margin-top: 30px;
    }

    .otp-section,
    .button-group {
        max-width: 100%;
    }

    .btn-verify {
        flex: 1;
        width: auto;
    }

    .btn-resend {
        flex: 1;
        width: auto;
    }

    .timer-box {
        width: auto;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .header-content {
        /* flex-direction: column; removed to keep row layout */
        gap: 12px;
        padding: 0 15px;
    }

    .online-text {
        font-size: 26px;
    }

    .bni-logo {
        height: 40px;
    }

    .btn-login-header {
        padding: 10px 16px 10px 10px;
    }

    .profile-icon {
        width: 32px;
        height: 32px;
    }

    .profile-icon svg {
        width: 16px;
        height: 16px;
    }

    .step-title {
        font-size: 14px;
    }

    .step-description {
        font-size: 14px;
    }

    .otp-section {
        flex-wrap: wrap;
    }

    .otp-inputs {
        gap: 8px;
    }

    .otp-input {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }

    .button-group {
        flex-wrap: wrap;
    }

    .btn-submit,
    .btn-verify,
    .btn-resend {
        width: 100%;
        flex: none;
    }

    .timer-box {
        width: auto;
        flex: 1;
    }

    .text-field {
        max-width: 100%;
    }

    .video-thumbnail {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .btn-login-header span:last-child {
        display: none;
    }

    .btn-login-header {
        padding: 8px;
        border-radius: 50%;
    }

    .logo-section {
        gap: 12px;
    }

    .online-text {
        font-size: 22px;
    }

    .bni-logo {
        height: 35px;
    }

    .otp-section {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .otp-inputs {
        gap: 4px;
        flex: 1;
    }

    .otp-input {
        width: 36px;
        height: 44px;
        font-size: 16px;
        padding: 0;
        border-radius: 6px;
    }

    .timer-box {
        width: 80px;
        min-width: 80px;
        height: 44px;
        padding: 0 8px;
    }

    .button-group {
        gap: 10px;
    }

    .btn-verify,
    .btn-resend {
        height: 48px;
        font-size: 14px;
    }

    .btn-resend {
        font-size: 12px;
    }

    .timer-text {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 10px;
    }

    .login-card {
        padding: 20px 15px;
    }

    .otp-input {
        width: 32px;
        height: 40px;
        font-size: 14px;
    }

    .otp-inputs {
        gap: 2px;
    }

    .timer-box {
        width: 70px;
        min-width: 70px;
        height: 40px;
        padding: 0 4px;
    }

    .timer-text {
        font-size: 13px;
    }

    .btn-verify,
    .btn-resend {
        font-size: 13px;
    }

    /* Fix for scroll/cut-off issue */
    body {
        padding-bottom: 50px;
    }
}

/* Error Message */
.error-message {
    display: block;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    margin-top: 5px;
    font-family: 'Open Sans', sans-serif;
}

/* ========================================
   Payment Page Styles
   ======================================== */

.payment-page {
    background-color: #F6F7F8;
}

.payment-content {
    padding: 30px 0 50px;
}

/* Navigation Menu */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.nav-divider {
    color: var(--text-gray);
    font-size: 14px;
}

/* User Profile in Header */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 15px;
    padding: 8px 16px 8px 8px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.user-profile:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(201, 28, 46, 0.15);
}

a.user-profile {
    text-decoration: none;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar svg {
    width: 18px;
    height: 18px;
}

.user-name {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

/* Payment Card */
.payment-card {
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    padding: 30px 35px;
    background: var(--white);
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.section-number {
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: linear-gradient(135deg, var(--primary-color), #E8475A);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.section-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
    margin: 0;
}

.section-title .text-primary {
    color: var(--primary-color) !important;
}

.section-divider {
    height: 1px;
    background-color: #E5E7EB;
    margin: 25px 0;
}

/* Event Info */
.event-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background-color: #F4F4F4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-gray);
}

.info-value {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-gray);
}

.price-badge {
    background-color: var(--primary-color);
    color: var(--white);
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 4px;
    margin-left: auto;
}

/* Form Grid */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-grid .row {
    overflow: visible;
    padding-top: 8px;
}

.form-grid .text-field {
    max-width: 100%;
}

.form-grid .form-control {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 16px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #1C1B1F;
    background: #F9F9F9;
    transition: border-color 0.3s ease;
}

.form-grid .form-control:focus,
.form-grid .form-control:focus-visible {
    outline: none !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: none !important;
    background: var(--white);
}

.form-grid .form-control::placeholder {
    color: #79747E;
}

/* Form Select/* Dropdown Arrow for Select */
.floating-label-select .form-control {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23000000'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 24px !important;
    padding-right: 40px;
    /* Make space for arrow */
}

/* Text Field with Icon */
.text-field.has-icon {
    position: relative;
}

.text-field.has-icon .form-control {
    padding-right: 48px;
}

.text-field .field-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.text-field .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-field .toggle-password:focus {
    outline: none !important;
}

/* Payment Summary */
.payment-summary {
    border: 1px solid #CFCFCF;
    border-radius: 4px;
    margin-bottom: 25px;
    overflow: hidden;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #CFCFCF;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.header .summary-label,
.summary-row.header .summary-value {
    font-weight: 700;
}

.summary-row.total .summary-label,
.summary-row.total .summary-value {
    font-weight: 700;
}

.summary-label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--text-gray);
}

.summary-value {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--text-gray);
}

/* Payment Method Selection */
.payment-method-selection {
    margin-bottom: 16px;
}

.payment-method-selection .form-check {
    margin-bottom: 8px;
    padding-left: 28px;
}

.payment-method-selection .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.payment-method-selection .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.payment-method-selection .form-check-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.payment-method-eft {
    margin-top: 16px;
    margin-bottom: 0;
}

/* Card Details Section */
.card-details-section {
    background-color: #D9D9D9;
    border: 1px solid #CFCFCF;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 25px;
}

.subsection-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.card-form {
    background-color: #F9F9F9;
    border: 1px solid #CFCFCF;
    border-radius: 4px;
    padding: 20px;
}

.card-form .text-field {
    margin-bottom: 15px;
}

.card-form .text-field:last-child {
    margin-bottom: 0;
}

.card-form .row:last-of-type .text-field {
    margin-bottom: 0;
}

.card-form .form-control {
    width: 100%;
    height: 48px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 16px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #1C1B1F;
    background: #F9F9F9;
    transition: border-color 0.3s ease;
}

.card-form .form-control:focus,
.card-form .form-control:focus-visible {
    outline: none !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: none !important;
    background: var(--white);
}

.card-form .form-control::placeholder {
    color: #79747E;
    letter-spacing: 1px;
}

/* Recurring Notice */
.recurring-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #F9F9F9;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 15px 20px;
    margin-top: 15px;
}

.recurring-notice span {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #1C1B1F;
}

/* Contracts Wrapper */
.contracts-wrapper {
    background-color: #D9D9D9;
    border: 1px solid #CFCFCF;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 20px;
}

/* Contract Box */
.contract-box {
    margin-bottom: 20px;
}

.contract-box:last-child {
    margin-bottom: 0;
}

.contract-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contract-content {
    background-color: #F4F4F4;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    padding: 20px;
    height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

.contract-content p {
    margin-bottom: 10px;
}

.contract-content strong {
    color: var(--text-dark);
}

.contract-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
}

.contract-table td {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.contract-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contract-checkbox .form-check-input {
    width: 15px;
    height: 15px;
    border: 1px solid #D9D9D9;
    border-radius: 0;
    margin: 0;
    flex-shrink: 0;
}

.contract-checkbox .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.contract-checkbox .form-check-input:focus {
    box-shadow: none !important;
    border-color: var(--primary-color);
}

.contract-checkbox label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #1C1B1F;
    cursor: pointer;
}

.contract-checkbox label .required {
    color: var(--primary-color);
}

/* KVKK Notice */
.kvkk-notice {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.kvkk-notice a {
    color: var(--primary-color);
    text-decoration: underline;
}

.kvkk-notice a:hover {
    text-decoration: none;
}

/* Submit Payment Button */
.btn-submit-payment {
    width: 100%;
    height: 56px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-payment:hover {
    background-color: #A8172A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 28, 46, 0.3);
}

.btn-submit-payment:focus,
.btn-submit-payment:focus-visible {
    background-color: var(--primary-color) !important;
    outline: 1px solid var(--primary-color) !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}

/* ========================================
   Payment Page Responsive Styles
   ======================================== */

@media (max-width: 1200px) {
    .main-nav {
        display: none;
    }

    .payment-card {
        padding: 25px 20px;
    }
}

@media (max-width: 992px) {
    .event-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .price-badge {
        margin-left: 0;
        margin-top: 10px;
    }

    .card-form .row {
        flex-direction: column;
    }

    .card-form .col-md-6,
    .card-form .col-md-3 {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .payment-content {
        padding: 20px 0 40px;
    }

    .payment-card {
        padding: 20px 15px;
    }

    .section-title {
        font-size: 16px;
    }

    .price-badge {
        font-size: 14px;
        padding: 10px 20px;
    }

    .contract-content {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .user-name {
        display: none;
    }

    .user-profile {
        padding: 6px;
        border-radius: 50%;
    }

    .info-row {
        flex-wrap: wrap;
    }

    .summary-row {
        padding: 10px 15px;
        flex-direction: column;
        gap: 5px;
    }

    .summary-row.header {
        flex-direction: row;
    }
}

/* Event Details Wrapper (Date & Time stack) */
.event-details-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Event Details Horizontal Layout */
.event-details-wrapper.event-details-horizontal {
    flex-direction: row;
    gap: 40px;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .event-details-wrapper.event-details-horizontal {
        flex-direction: column;
        gap: 15px;
    }
}

/* ========================================
   Floating Label Styles
   ======================================== */

.floating-label {
    position: relative;
    margin-bottom: 15px;
}

.floating-label .form-control {
    width: 100%;
    height: 56px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px 16px 10px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #1C1B1F;
    background: #F9F9F9;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.floating-label.has-icon .form-control {
    padding-right: 48px;
}

.floating-label .form-control:focus,
.floating-label .form-control:focus-visible {
    outline: none !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: none !important;
    background: #F9F9F9;
}

.floating-label .floating-label-text {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #79747E;
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
    padding: 0;
}

.floating-label .floating-label-text .required {
    color: var(--primary-color);
}

/* Float label up on focus or when input has value - Inside style */
.floating-label .form-control:focus~.floating-label-text,
.floating-label .form-control:not(:placeholder-shown)~.floating-label-text {
    top: 8px;
    transform: translateY(0);
    font-size: 12px;
    color: #79747E;
    background: #F9F9F9;
    padding: 0 4px;
    left: 12px;
}

/* Floating Label Outline Style - Label moves above the border */
.floating-label.floating-label-outline .floating-label-text {
    background: transparent;
}

.floating-label.floating-label-outline .form-control:focus~.floating-label-text,
.floating-label.floating-label-outline .form-control:not(:placeholder-shown)~.floating-label-text {
    top: 0;
    transform: translateY(-50%);
    font-size: 12px;
    color: #79747E;
    background: #F9F9F9;
    padding: 0 6px;
    left: 10px;
}

/* Field icon for floating labels */
.floating-label .field-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Toggle password button for floating labels */
.floating-label .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.floating-label .toggle-password:focus {
    outline: none !important;
}

/* Floating Label for Select elements */
.floating-label.floating-label-select {
    overflow: visible;
}

.floating-label.floating-label-select .form-control {
    padding-right: 40px;
}

.floating-label.floating-label-select .floating-label-text {
    position: absolute;
    top: 0;
    left: 10px;
    transform: translateY(-50%);
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #1C1B1F;
    background: #F9F9F9;
    padding: 2px 8px;
    z-index: 2;
    white-space: nowrap;
    line-height: 1.4;
    pointer-events: none;
    overflow: visible;
}

/* Form Grid specific floating label styles */
.form-grid .floating-label {
    margin-bottom: 0;
}

.form-grid .floating-label .form-control {
    height: 50px;
}

/* Error message positioning for floating labels */
.floating-label .error-message {
    position: relative;
    display: block;
    font-size: 12px;
    color: var(--primary-color);
    font-family: 'Open Sans', sans-serif;
    margin-top: 5px;
    padding-left: 2px;
}

/* ========================================
   Card Inputs Row Layout
   ======================================== */

.card-inputs-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.card-number-field {
    flex: 2;
    min-width: 0;
}

.card-expiry-field {
    flex: 1.2;
    min-width: 0;
}

.card-cvc-field {
    flex: 1;
    min-width: 0;
}

.card-inputs-row .text-field {
    max-width: 100%;
    margin-bottom: 0;
}

.card-inputs-row .text-field .form-control {
    height: 48px;
    padding: 12px 40px 12px 16px;
    font-size: 14px;
    letter-spacing: 1px;
}

.card-inputs-row .text-field .form-control::placeholder {
    color: #79747E;
    letter-spacing: 2px;
}

.card-inputs-row .text-field .field-icon {
    top: 50%;
}

.contract-box {
    border: none;
    border-radius: 4px;
    padding: 0;
    margin-bottom: 20px;
    background: transparent;
    transition: border-color 0.3s ease;
}

.contract-box.error-border {
    border: 1px solid #C91C2E !important;
}

.notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Recurring Notice (Info Only) */
.recurring-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #F9F9F9;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 15px 20px;
    margin-top: 15px;
}

.recurring-notice>span {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #1C1B1F;
    line-height: 1.4;
}

/* ========================================
   Card Inputs Responsive
   ======================================== */

@media (max-width: 576px) {
    .card-inputs-row {
        flex-direction: column;
        gap: 15px;
    }

    .card-number-field,
    .card-expiry-field,
    .card-cvc-field {
        flex: none;
        width: 100%;
    }
}

/* ========================================
   Mobile Select/Dropdown Fix
   Forces light theme for native iOS/Android picker
   ======================================== */
select.form-control,
.floating-label-select select.form-control {
    color-scheme: light only !important;
    background-color: #F9F9F9 !important;
    color: #1C1B1F !important;
    -webkit-text-fill-color: #1C1B1F !important;
}

select.form-control option {
    background-color: #FFFFFF !important;
    color: #1C1B1F !important;
    -webkit-text-fill-color: #1C1B1F !important;
}

/* Ensure consistent styling on focus/active */
select.form-control:focus,
select.form-control:active,
.floating-label-select select.form-control:focus,
.floating-label-select select.form-control:active {
    background-color: #F9F9F9 !important;
    color: #1C1B1F !important;
    -webkit-text-fill-color: #1C1B1F !important;
}

/* Force light mode for Chrome/Android dark mode users */
@media (prefers-color-scheme: dark) {

    select.form-control,
    .floating-label-select select.form-control {
        color-scheme: light only !important;
        background-color: #F9F9F9 !important;
        color: #1C1B1F !important;
        -webkit-text-fill-color: #1C1B1F !important;
    }

    select.form-control option {
        background-color: #FFFFFF !important;
        color: #1C1B1F !important;
    }
}

/* ========================================
   Profile Page Styles
   ======================================== */
.profile-page {
    background-color: #F6F7F8;
    min-height: 100vh;
}

.profile-page .header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-page .header-nav a {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #4D4D4D;
    text-decoration: none;
    transition: color 0.3s ease;
}

.profile-page .header-nav a:hover {
    color: var(--primary-color);
}

.profile-page .header-nav .nav-divider {
    color: #4D4D4D;
    font-weight: 400;
}

.profile-page .user-section {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.profile-page .user-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-page .user-name {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #22242F;
}

/* Profile Container */
.profile-container {
    display: flex;
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    background: transparent;
    margin-top: 30px;
    margin-bottom: 50px;
    min-height: 700px;
    overflow: visible;
}

/* Profile Sidebar */
.profile-sidebar {
    width: 280px;
    min-width: 280px;
    background: #FFFFFF;
    border-radius: 15px 0 0 15px;
    padding: 40px 32px 40px 32px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #E5E7EB;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.sidebar-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-name {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #22242F;
}

/* Sidebar Menu */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #22242F;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 4px 0;
}

.menu-item svg {
    flex-shrink: 0;
    color: #22242F;
    transition: color 0.3s ease;
}

.menu-item:hover,
.menu-item.active {
    color: var(--primary-color);
}

.menu-item:hover svg,
.menu-item.active svg {
    color: var(--primary-color);
}

.menu-item.active {
    font-weight: 600;
}

.sidebar-divider {
    height: 1px;
    background-color: #E5E7EB;
    margin: 30px 0;
}

.logout-item {
    margin-top: auto;
}

/* Group Info */
.sidebar-group-info {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.group-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
}

.group-label {
    font-weight: 600;
    color: var(--primary-color);
}

.group-value {
    font-weight: 400;
    color: #22242F;
}

/* Profile Content */
.profile-content {
    flex: 1;
    padding: 40px 50px;
    background: transparent;
}

.profile-section-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.profile-form {
    max-width: 700px;
}

.profile-form .floating-label {
    background: transparent;
}

.profile-form .form-control {
    background-color: #F9F9F9;
}

.profile-form .form-control[readonly] {
    background-color: #FFFFFF;
    border-color: #79747E;
}

/* Save Button */
.btn-save {
    background-color: var(--primary-color);
    border: none;
    border-radius: 4px;
    padding: 14px 40px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #FFFFFF;
    transition: background-color 0.3s ease;
}

.btn-save:hover {
    background-color: #A8152A;
}

/* Profile Page Responsive */

/* Hide mobile-only elements on desktop */
.sidebar-group-info-mobile {
    display: none;
}

.sidebar-header-row {
    display: contents;
}

.sidebar-menu-row {
    display: contents;
}

@media (max-width: 992px) {
    .profile-container {
        flex-direction: column;
        min-height: auto;
    }

    .profile-sidebar {
        width: 100%;
        min-width: unset;
        border-radius: 15px 15px 0 0;
        border-right: none;
        border-bottom: 1px solid #E5E7EB;
        padding: 16px;
        overflow: visible;
    }

    /* Header row: User left, Group info right */
    .sidebar-header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
    }

    .sidebar-user {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .sidebar-group-info-mobile {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        font-family: 'Open Sans', sans-serif;
        font-size: 10px;
        color: #79747E;
        text-align: right;
        flex-shrink: 1;
        min-width: 0;
        max-width: 55%;
    }

    .sidebar-group-info-mobile .info-row {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .sidebar-group-info-mobile strong {
        color: #22242F;
        font-weight: 600;
    }

    /* Hide desktop group info */
    .sidebar-group-info {
        display: none;
    }

    /* Menu row wrapper - contains menu + logout */
    .sidebar-menu-row {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .sidebar-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 4px;
        align-items: center;
        flex: 1;
    }

    .menu-item {
        gap: 4px;
        padding: 6px;
        flex-shrink: 0;
    }

    .menu-item svg {
        width: 20px;
        height: 20px;
    }

    .menu-item span {
        display: none;
    }

    /* Show name for active menu item */
    .menu-item.active {
        background-color: rgba(201, 28, 46, 0.1);
        border-radius: 8px;
        padding: 6px 10px;
    }

    .menu-item.active span {
        display: inline;
        font-size: 11px;
        font-weight: 600;
    }

    .sidebar-divider {
        display: none;
    }

    .logout-item {
        margin-top: 0;
        margin-left: auto;
        gap: 4px;
        flex-shrink: 0;
        padding-right: 8px;
    }

    .logout-item span {
        display: inline !important;
        font-size: 10px;
        font-weight: 600;
        white-space: nowrap;
    }

    .profile-content {
        padding: 30px 24px;
    }
}

@media (max-width: 768px) {
    .profile-page .header-nav {
        display: none;
    }

    .profile-container {
        margin-top: 20px;
        border-radius: 10px;
    }

    .profile-sidebar {
        border-radius: 10px 10px 0 0;
        padding: 20px 16px;
    }

    .sidebar-user {
        margin-bottom: 20px;
    }

    .sidebar-menu {
        justify-content: center;
    }

    .profile-content {
        padding: 24px 16px;
    }

    .profile-form {
        max-width: 100%;
    }

    .btn-save {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .profile-page .user-name {
        display: none;
    }
}

/* ========================================
   Forms Page Styles
   ======================================== */

.forms-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.forms-header svg {
    flex-shrink: 0;
}

.forms-header .profile-section-title {
    margin-bottom: 0;
}

.forms-table-wrapper {
    background: #FFFFFF;
    border-radius: 8px;
}

/* Desktop Table Styles */
.forms-table {
    width: 100%;
    border-collapse: collapse;
}

.forms-table thead th {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #C91C2E;
    text-align: left;
    padding: 16px 12px;
    border-bottom: 1px solid #E8E8E8;
}

.forms-table tbody tr {
    border-bottom: 1px solid #F0F0F0;
    transition: background-color 0.2s ease;
}

.forms-table tbody tr:last-child {
    border-bottom: none;
}

.forms-table tbody tr:hover {
    background-color: #FAFAFA;
}

.forms-table tbody td {
    padding: 16px 12px;
    vertical-align: middle;
}

.forms-table .form-name {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #22242F;
}

.forms-table .form-description {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #4D4D4D;
}

/* Form View Button */
.btn-form-view {
    background-color: #C91C2E;
    color: #FFFFFF;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.btn-form-view:hover {
    background-color: #A51726;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.btn-form-view:active {
    transform: translateY(0);
}

/* Copy Link Button */
.btn-copy-link {
    background-color: #6B6B6B;
    color: #FFFFFF;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.btn-copy-link svg {
    flex-shrink: 0;
}

.btn-copy-link:hover {
    background-color: #555555;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.btn-copy-link:active {
    transform: translateY(0);
}

/* Mobile Card Styles */
.forms-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-card {
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    padding: 16px;
    transition: box-shadow 0.2s ease;
}

.form-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-card-header {
    margin-bottom: 16px;
}

.form-card-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #22242F;
    margin: 0 0 6px 0;
}

.form-card-description {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #4D4D4D;
    margin: 0;
}

.form-card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-card-actions .btn-form-view {
    flex: 1;
    min-width: 120px;
}

.form-card-actions .btn-copy-link {
    flex: 1;
    min-width: 100px;
    justify-content: center;
}

/* Forms Page Responsive */
@media (max-width: 992px) {
    .forms-table .col-description {
        max-width: 200px;
    }

    .forms-table .form-description {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .forms-header {
        margin-bottom: 20px;
    }

    .forms-header svg {
        width: 20px;
        height: 20px;
    }

    .form-card-actions {
        flex-direction: column;
    }

    .form-card-actions .btn-form-view,
    .form-card-actions .btn-copy-link {
        width: 100%;
        justify-content: center;
    }
}

/* Toast Styling */
.toast-container .toast {
    background-color: #28A745 !important;
}

.toast-container .toast-body {
    display: flex;
    align-items: center;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
}

/* ========================================
   Transaction History Page Styles
   ======================================== */

.history-table-wrapper {
    overflow: visible;
}

.history-table {
    min-width: 900px;
}

.history-table thead th {
    font-size: 14px;
    padding: 16px 12px;
}

.history-table tbody td {
    padding: 12px;
    vertical-align: middle;
}

.transaction-id {
    display: flex;
    align-items: center;
    gap: 8px;
}

.transaction-id .row-num {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #363636;
    min-width: 24px;
}

.transaction-id .order-id {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #363636;
}

/* History Action Buttons */
.btn-history-view {
    background-color: #4D4D4D;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 6px 24px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-history-view:hover {
    background-color: #363636;
    color: #FFFFFF;
}

.btn-history-retry {
    background-color: #0F2888;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 6px 24px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-history-retry:hover {
    background-color: #0a1d66;
    color: #FFFFFF;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    white-space: nowrap;
}

.status-badge.status-success {
    background-color: #71B26C;
    color: #FFFFFF;
}

.status-badge.status-failed {
    background-color: #C91C2E;
    color: #FFFFFF;
}

/* History Mobile Cards */
.history-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #E5E5E5;
}

.history-card.failed-card {
    border-color: #C91C2E;
    border-width: 1px;
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E5E5E5;
}

.history-card-id {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-card-id .row-num {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #363636;
}

.history-card-id .order-id {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #4D4D4D;
}

.history-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.history-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-card-row .label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #79747E;
}

.history-card-row .value {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #363636;
    text-align: right;
}

.history-card-actions {
    display: flex;
    gap: 12px;
}

.history-card-actions .btn-history-view,
.history-card-actions .btn-history-retry {
    flex: 1;
    text-align: center;
}

@media (max-width: 992px) {
    .history-table-wrapper .table-responsive {
        display: none;
    }

    .history-cards {
        display: flex !important;
    }
}

@media (min-width: 993px) {
    .history-cards {
        display: none !important;
    }
}

/* History Infinite Scroll Loading Indicator */
.history-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    color: #79747E;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #E5E5E5;
    border-top-color: #C91C2E;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   New Membership Payment Page Styles
   ======================================== */

.membership-payment-page {
    background-color: #F5F5F5;
    min-height: 100vh;
}

.membership-payment-page .header {
    background-color: #C91C2E;
}

.membership-payment-page .user-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.membership-payment-page .header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.membership-payment-page .header-icon-btn:hover {
    opacity: 0.8;
}

.membership-payment-page .btn-header-account {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #71B26C;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.membership-payment-page .btn-header-account:hover {
    background-color: #5a9a56;
    color: #FFFFFF;
}

.membership-main {
    padding: 30px 0 60px;
}

.membership-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

.membership-form-column {
    flex: 0 0 46%;
    max-width: 46%;
    min-width: 0;
}

.membership-payment-column {
    flex: 0 0 52%;
    max-width: 52%;
}

/* Sticky Payment Section */
.membership-payment-sticky {
    position: sticky;
    top: 100px;
}

/* Page Header */
.membership-page-header {
    background: linear-gradient(135deg, #C91C2E 0%, #8B1220 100%);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-breadcrumb {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.page-price-badge {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-amount {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #FFFFFF;
}

.price-note {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

/* Form Card */
.membership-form-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Form Sections */
.form-section {
    padding: 24px;
    border-bottom: 1px solid #E5E5E5;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #363636;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    font-size: 18px;
}

/* Form Elements */
.membership-form .form-group {
    margin-bottom: 16px;
}

.membership-form .form-label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #363636;
    margin-bottom: 6px;
    display: block;
}

.membership-form .form-label .required {
    color: #C91C2E;
}

.membership-form .form-control,
.membership-form .form-select {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    background-color: #FFFFFF;
    color: #363636;
    width: 100%;
}

.membership-form .form-control:focus,
.membership-form .form-select:focus {
    border-color: #C91C2E;
    box-shadow: 0 0 0 2px rgba(201, 28, 46, 0.1);
    outline: none;
}

.membership-form .form-control.is-invalid {
    border-color: #C91C2E;
    background-color: #FFF5F5;
}

.membership-form textarea.form-control {
    resize: vertical;
    min-height: 70px;
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.radio-group .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-group .form-check-input {
    width: 18px;
    height: 18px;
    accent-color: #C91C2E;
    cursor: pointer;
}

.radio-group .form-check-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #363636;
    cursor: pointer;
}

/* Info Box */
.info-box {
    background-color: #F5F5F5;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 20px;
}

.info-box p {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #666666;
    margin-bottom: 8px;
    line-height: 1.6;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Ethics List */
.ethics-list {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #363636;
    line-height: 1.8;
    padding-left: 20px;
    margin-bottom: 16px;
}

.ethics-list li {
    margin-bottom: 8px;
}

.ethics-note {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-style: italic;
    color: #C91C2E;
    margin-bottom: 16px;
}

.ethics-declaration {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #363636;
    line-height: 1.6;
}

/* Criminal Record Section */
.criminal-record-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #363636;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Membership Fee List */
.membership-fee-list {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #363636;
    line-height: 1.8;
    padding-left: 20px;
}

.membership-fee-list li {
    margin-bottom: 12px;
}

/* Payment Card */
.membership-payment-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.payment-card-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #363636;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E5E5;
}

.title-icon {
    font-size: 20px;
}

/* Payment Summary */
.payment-summary-section {
    margin-bottom: 24px;
}

.payment-summary-table {
    background-color: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    overflow: hidden;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #FAFAFA;
    border-bottom: 1px solid #E5E5E5;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #363636;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #E5E5E5;
    background-color: #FFFFFF;
}

.product-name {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #363636;
}

.product-price {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #363636;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background-color: #FAFAFA;
}

.summary-total span:first-child {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #363636;
}

.total-price {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #C91C2E;
}

/* Card Info Section */
.card-info-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E5E5E5;
}

.card-section-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #363636;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-info-section .form-group {
    margin-bottom: 14px;
}

.card-info-section .form-label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #363636;
    margin-bottom: 6px;
    display: block;
}

.card-info-section .form-control,
.card-info-section .form-select {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    background-color: #FFFFFF;
    color: #363636;
}

.card-info-section .form-control:focus,
.card-info-section .form-select:focus {
    border-color: #C91C2E;
    box-shadow: 0 0 0 2px rgba(201, 28, 46, 0.1);
    outline: none;
}

.installment-info {
    background-color: #F5F5F5;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.installment-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #666666;
}

.expiry-inputs {
    display: flex;
    gap: 8px;
}

.expiry-inputs .form-select {
    flex: 1;
}

/* Contracts Section */
.contracts-section {
    margin-bottom: 20px;
}

.contracts-section .card-section-title {
    margin-bottom: 12px;
}

.contract-item {
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
}

.contract-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background-color: #FAFAFA;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contract-header:hover {
    background-color: #F0F0F0;
}

.contract-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #363636;
}

.collapse-icon {
    transition: transform 0.3s ease;
}

.contract-content {
    padding: 14px;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #666666;
    line-height: 1.6;
    max-height: 150px;
    overflow-y: auto;
    background-color: #F4F4F4;
    border-top: 1px solid #D9D9D9;
}

/* Contract Checkbox */
.contract-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0;
}

.contract-checkbox input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #C91C2E;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.contract-checkbox label {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #363636;
    cursor: pointer;
    line-height: 1.4;
}

.contract-checkbox.checkbox-error label {
    color: #C91C2E;
}

/* Payment Submit Button */
.btn-payment-submit {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background-color: #C91C2E;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-payment-submit:hover {
    background-color: #a81625;
    color: #FFFFFF;
}

/* Membership Footer */
.membership-footer {
    background-color: #FFFFFF;
    padding: 20px 0;
    border-top: 1px solid #E5E5E5;
    text-align: center;
}

.footer-copyright {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #79747E;
    margin: 0;
}

/* ========================================
   New Membership Payment Page Additional Styles
   (Working within payment-page framework)
   ======================================== */

/* Membership Price Badge */
.membership-price-badge {
    display: inline-block;
    background-color: #C91C2E;
    color: #FFFFFF;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 4px;
    margin-top: 10px;
}

/* Card Details Gray Background */
.card-details-gray {
    background-color: #F0F0F0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
    border: none;
}

.card-details-gray .subsection-title {
    margin-bottom: 16px;
}

.card-details-gray .floating-label-outline .form-control {
    background-color: #FFFFFF;
}

.card-details-gray .text-field .form-control {
    background-color: #FFFFFF;
}

/* Section Description */
.section-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #666666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Floating Label Textarea */
.floating-label-textarea {
    position: relative;
}

.floating-label-textarea textarea.form-control {
    min-height: 80px;
    resize: vertical;
    padding-top: 24px;
}

.floating-label-textarea .floating-label-text {
    white-space: normal;
    line-height: 1.3;
    top: 20px;
    transform: translateY(0);
    font-size: 16px;
}

/* Textarea label floats up on focus or has value */
.floating-label-textarea textarea.form-control:focus ~ .floating-label-text,
.floating-label-textarea textarea.form-control:not(:placeholder-shown) ~ .floating-label-text {
    top: 0;
    transform: translateY(-50%);
    font-size: 12px;
    background: #F9F9F9;
    padding: 0 6px;
    left: 10px;
}

/* Outline variant for textarea */
.floating-label-textarea.floating-label-outline textarea.form-control:focus ~ .floating-label-text,
.floating-label-textarea.floating-label-outline textarea.form-control:not(:placeholder-shown) ~ .floating-label-text {
    background: #F9F9F9;
}

/* Question Items for Yes/No Questions */
.question-item {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0F0F0;
}

.question-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.question-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #363636;
    line-height: 1.6;
    margin-bottom: 12px;
}

.question-text .required {
    color: #C91C2E;
}

/* Radio Group Inline */
.radio-group-inline {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.radio-group-inline .form-check-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 0;
}

.radio-group-inline .form-check-input {
    width: 18px;
    height: 18px;
    accent-color: #C91C2E;
    cursor: pointer;
    margin: 0;
}

.radio-group-inline .form-check-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #363636;
    cursor: pointer;
    margin: 0;
}

.radio-group-inline.radio-error .form-check-label {
    color: #C91C2E;
}

/* Field validation error messages */
.field-error-msg,
.radio-error-msg,
.checkbox-error-msg {
    display: none;
    color: #C91C2E;
    font-size: 12px;
    font-family: 'Open Sans', sans-serif;
    margin-top: 4px;
}

.radio-error-msg {
    margin-top: 6px;
}

.checkbox-error-msg {
    margin-top: 6px;
}

/* Info Box for Membership */
.info-box-membership {
    background-color: #F8F9FA;
    border: 1px solid #E9ECEF;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.info-box-membership p {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #666666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.info-box-membership p:last-child {
    margin-bottom: 0;
}

/* Installment Info Box */
.installment-info {
    background-color: #F5F5F5;
    border-radius: 4px;
    padding: 12px;
    margin-top: 16px;
    text-align: center;
}

.installment-info span {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #666666;
}

/* Membership Payment Sticky Column */
.membership-payment-sticky {
    position: sticky;
    top: 100px;
}

/* Responsive Membership Payment Page */
@media (max-width: 1200px) {
    .membership-form-column {
        flex: 0 0 48%;
        max-width: 48%;
    }

    .membership-payment-column {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 992px) {
    .membership-container {
        flex-direction: column;
    }

    .membership-form-column,
    .membership-payment-column {
        max-width: 100%;
        width: 100%;
        flex: none;
    }

    .membership-payment-sticky {
        position: relative;
        top: auto;
    }

    .membership-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .radio-group-inline {
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .membership-main {
        padding: 20px 0 40px;
    }

    .membership-page-header {
        padding: 16px;
    }

    .price-amount {
        font-size: 20px;
    }

    .form-section {
        padding: 16px;
    }

    .membership-payment-card {
        padding: 16px;
    }

    .radio-group {
        flex-direction: column;
        gap: 12px;
    }

    .radio-group-inline {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 16px;
    }

    .expiry-inputs {
        flex-direction: column;
    }

    .question-text {
        font-size: 13px;
    }

    .floating-label-textarea .floating-label-text {
        font-size: 11px;
    }
}