:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --success-color: #00b894;
    --error-color: #d63031;
    --text-color: #2d3436;
    --light-gray: #f5f6fa;
    --border-color: #dfe6e9;
    --white: #ffffff;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 0;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 30px 25px;
    text-align: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    border-radius: 50%;
    background-color: var(--white);
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-section h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 15px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.features {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
}

.feature i {
    margin-right: 5px;
    font-size: 14px;
}

.verification-type {
    display: flex;
    margin: 0 25px 20px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--light-gray);
    transform: translateY(-15px);
    box-shadow: var(--shadow);
}

.type-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    gap: 10px;
}

.type-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.type-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}


.verification-section {
    padding: 0 25px;
    margin-bottom: 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.verification-section.active {
    max-height: 1000px;
    opacity: 1;
    padding-bottom: 15px;
}

.ticket-count {
    margin-bottom: 20px;
}

.ticket-count label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}
/* Add to your existing CSS */
.ticket-input[placeholder="XXX XXX XXX XXX"] {
    letter-spacing: 1.5px;
    font-family: monospace;
}

.ticket-input[placeholder="XXXXX XXXXX"] {
    letter-spacing: 1px;
    font-family: inherit;
    text-transform: uppercase;
}

.count-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    background-color: var(--white);
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
}

.count-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.ticket-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ticket-group {
    position: relative;
}

.ticket-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.ticket-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.ticket-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.ticket-input.invalid {
    border-color: var(--error-color);
}

.error-message {
    display: none;
    color: var(--error-color);
    font-size: 13px;
    margin-top: 5px;
}

.email-section {
    padding: 0 25px;
    margin-bottom: 25px;
}

.email-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.email-section input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.email-section input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.email-section input.invalid {
    border-color: var(--error-color);
}

.submit-btn {
    width: calc(100% - 50px);
    margin: 0 25px 25px;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.5);
}

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

.submit-btn i {
    margin-left: 8px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader-container {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.loader {
    width: 40px;
    height: 40px;
    --c: no-repeat linear-gradient(var(--primary-color) 0 0);
    background: var(--c), var(--c), var(--c), var(--c);
    background-size: 21px 21px;
    animation: l5 1.5s infinite cubic-bezier(0.3, 1, 0, 1);
}

@keyframes l5 {
    0% {
        background-position: 0 0, 100% 0, 100% 100%, 0 100%;
    }
    33% {
        background-position: 0 0, 100% 0, 100% 100%, 0 100%;
        width: 60px;
        height: 60px;
    }
    66% {
        background-position: 100% 0, 100% 100%, 0 100%, 0 0;
        width: 60px;
        height: 60px;
    }
    100% {
        background-position: 100% 0, 100% 100%, 0 100%, 0 0;
    }
}

/* Updated success message styles */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.success-message.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Updated checkmark animation */
.checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    position: relative;
}

.checkmark__circle {
    stroke: var(--success-color);
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: var(--success-color);
    stroke-width: 2;
    stroke-miterlimit: 10;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.checkmark__circle-background {
    stroke: var(--light-gray);
    stroke-width: 2;
    fill: none;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0 0 0 100vh var(--success-color);
    }
}

/* Mobile optimizations */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .hero-section {
        padding: 25px 15px;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .hero-section h1 {
        font-size: 20px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .features {
        gap: 10px;
    }

    .feature {
        font-size: 12px;
        padding: 6px 10px;
    }

    .verification-type {
        margin: 0 15px 15px;
        transform: translateY(-10px);
    }

    .type-btn {
        padding: 12px;
        font-size: 14px;
    }

    .verification-section {
        padding: 0 15px;
    }

    .ticket-input, .count-select, .email-section input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .submit-btn {
        width: calc(100% - 30px);
        margin: 0 15px 20px;
        padding: 12px;
        font-size: 15px;
    }

    .success-message {
        padding: 30px;
        width: 90%;
    }
}