/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #111;
    background: #efeae2 url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiPjxjaXJjbGUgY3g9IjEiIGN5PSIxIiByPSIwLjUiIGZpbGw9IiNkZGQ1Y2IiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjcGF0dGVybikiLz48L3N2Zz4=');
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background: transparent;
    overflow: hidden;
}

/* WhatsApp Header */
.carousel-section {
    padding: 0;
    text-align: center;
    background: transparent;
}

.main-title {
    font-size: 1.5rem;
    margin: 0;
    padding: 12px 24px;
    color: #ededed;
    font-weight: 600;
    letter-spacing: 0;
    background: #075e54;
    box-shadow: 0 2px 3px rgba(0,0,0,0.15);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-title::before {
    content: '←';
    font-size: 1.8rem;
    cursor: pointer;
}

.carousel-container {
    position: relative;
    width: 95%;
    max-width: 450px;
    margin: 16px auto;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 9 / 16;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 0, 0, 0.1);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #00f2ea;
    box-shadow: 0 4px 16px rgba(0, 242, 234, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: 16px;
}

.next-btn {
    right: 16px;
}

.carousel-btn svg {
    color: #161823;
    width: 28px;
    height: 28px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 16px 0;
    background: transparent;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.dot:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.2);
}

.dot.active {
    background: #25d366;
    width: 24px;
    border-radius: 4px;
}

/* Audio Section */
.audio-section {
    padding: 8px 16px;
    text-align: left;
    background: transparent;
    border: none;
    max-width: 500px;
    margin: 12px auto;
}

.audio-section h2 {
    display: none;
}

.audio-unmute-prompt {
    margin: 0 auto 20px;
    max-width: 600px;
}

.unmute-btn {
    background: #d9fdd3;
    color: #111;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.unmute-btn:hover {
    background: #c8ecc4;
}

.unmute-btn:active {
    transform: scale(0.98);
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 1px 2px rgba(37, 211, 102, 0.2);
    }
    50% {
        box-shadow: 0 2px 4px rgba(37, 211, 102, 0.4);
    }
}

audio {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    outline: none;
    background: #d9fdd3;
    padding: 8px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

audio::-webkit-media-controls-panel {
    background: #d9fdd3;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-pause-button {
    background-color: #25d366;
    border-radius: 50%;
}

/* Transcript Section */
.transcript-section {
    padding: 16px;
    background: transparent;
    border: none;
    max-width: 500px;
    margin: 0 auto;
}

.transcript-section h2 {
    display: none;
}

.transcript-text {
    background: #d9fdd3;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    position: relative;
    margin-left: auto;
    max-width: 85%;
}

.transcript-text::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 0;
    width: 0;
    height: 0;
    border-left: 8px solid #d9fdd3;
    border-top: 8px solid transparent;
}

.transcript-text p {
    margin-bottom: 8px;
    color: #111;
    line-height: 1.5;
    font-size: 0.95rem;
}

.transcript-text p:last-child {
    margin-bottom: 0;
}

/* Payment Section */
.payment-section {
    padding: 16px;
    text-align: left;
    background: transparent;
    border: none;
    max-width: 500px;
    margin: 12px auto;
}

.payment-section h2 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: #111;
    font-weight: 500;
    background: #d9fdd3;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    position: relative;
    margin-left: auto;
    max-width: 85%;
}

.payment-section h2::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 0;
    width: 0;
    height: 0;
    border-left: 8px solid #d9fdd3;
    border-top: 8px solid transparent;
}

.payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: auto;
    max-width: 85%;
}

.payment-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    text-align: left;
    width: 100%;
}

.payment-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.payment-btn:active {
    transform: scale(0.98);
}

.kach-btn {
    background: #fff;
    color: #111;
    border: 1px solid #e1e1e1;
}

.kach-btn .btn-icon {
    color: #ff6b6b;
}

.moncash-btn {
    background: #25d366;
    color: #fff;
}

.moncash-btn .btn-icon {
    color: #fff;
}

.btn-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.btn-text {
    font-size: 0.95rem;
    font-weight: 500;
    flex: 1;
}

/* Form Page Styles */
.form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding: 16px;
}

.form-title {
    font-size: 1.5rem;
    text-align: left;
    margin: 0;
    padding: 12px 24px;
    color: #ededed;
    font-weight: 600;
    background: #075e54;
    box-shadow: 0 2px 3px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.form-title::before {
    content: '←';
    font-size: 1.8rem;
    cursor: pointer;
}

.form-audio {
    background: transparent;
    padding: 12px 0;
    border: none;
}

.form-info-text {
    background: #d9fdd3;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 12px 0;
    border: none;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    position: relative;
    margin-left: auto;
    max-width: 85%;
}

.form-info-text::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 0;
    width: 0;
    height: 0;
    border-left: 8px solid #d9fdd3;
    border-top: 8px solid transparent;
}

.form-info-text p {
    margin-bottom: 8px;
    color: #111;
    font-size: 0.95rem;
    line-height: 1.5;
}

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

#payment-method {
    font-weight: 600;
    color: #25d366;
}

/* Form Styles */
.registration-form {
    background: transparent;
    margin-top: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #667781;
    font-size: 0.85rem;
}

.required {
    color: #ea4335;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid #dfe5e7;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
    background: #fff;
    color: #111;
}

.form-group input::placeholder {
    color: #8696a0;
}

.form-group input:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
    background: #fff;
}

.form-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid #dfe5e7;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
    background: #fff;
    color: #111;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

/* Call Scheduler Message - WhatsApp Style */
.call-scheduler-message {
    background: #d9fdd3;
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    position: relative;
    margin-left: auto;
    max-width: 85%;
    margin-bottom: 20px;
}

.call-scheduler-message::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 0;
    width: 0;
    height: 0;
    border-left: 8px solid #d9fdd3;
    border-top: 8px solid transparent;
}

.call-scheduler-message p {
    margin-bottom: 12px;
    color: #111;
    line-height: 1.5;
    font-size: 0.95rem;
    font-weight: 500;
}

.scheduler-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-group.compact {
    margin-bottom: 0;
}

.form-group.compact label {
    font-size: 0.75rem;
    margin-bottom: 6px;
    color: #667781;
}

.form-group.compact input,
.form-group.compact select {
    padding: 10px;
    font-size: 0.9rem;
    border: 1px solid #b8d4ba;
    background: #fff;
}

.form-group.compact input[type="time"] {
    min-height: 44px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Custom Time Picker Styles */
.time-picker-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.time-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 2px;
    background: linear-gradient(to bottom, #ffffff, #fafffe);
    border: 2px solid #b8d4ba;
    border-radius: 10px;
    padding: 8px 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    width: 100%;
}

.time-picker-wrapper:hover {
    border-color: #25d366;
    box-shadow: 0 3px 8px rgba(37, 211, 102, 0.15);
    transform: translateY(-1px);
}

.time-picker-wrapper:focus-within {
    border-color: #25d366;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.2), 0 3px 8px rgba(37, 211, 102, 0.15);
    background: #fafffe;
    transform: translateY(-1px);
}

.time-select {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 6px 0;
    font-size: 9px;
    background: transparent;
    color: #111;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    min-height: 32px;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.time-select:invalid {
    color: #8696a0;
    font-weight: 500;
}

.time-select:hover {
    background: #f0f2f5;
}

.time-select:focus {
    outline: none;
    background: #e8f5e9;
}

.time-select option {
    padding: 10px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #111;
    background: #fff;
    line-height: 1.4;
}

.time-select option:disabled {
    color: #8696a0;
    font-weight: 400;
}

.time-separator {
    font-size: 1rem;
    font-weight: 800;
    color: #25d366;
    flex-shrink: 0;
    padding: 0 1px;
    user-select: none;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.form-group.compact input:focus,
.form-group.compact select:focus {
    border-color: #25d366;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.1);
}

.form-hint {
    display: block;
    margin-top: 6px;
    color: #667781;
    font-size: 0.8rem;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.submit-btn:hover {
    background: #20ba5a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Thank You Message */
.thank-you-message {
    text-align: center;
    padding: 60px 24px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.thank-you-message h2 {
    font-size: 2rem;
    color: #111;
    margin-bottom: 12px;
    font-weight: 600;
}

.thank-you-message p {
    font-size: 1rem;
    color: #667781;
    margin-bottom: 10px;
}

.return-link {
    margin-top: 30px;
}

.return-link a {
    display: inline-block;
    padding: 12px 32px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.return-link a:hover {
    background: #20ba5a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.3rem;
        padding: 10px 16px;
    }

    .carousel-container {
        max-width: 100%;
        border-radius: 8px;
        margin: 12px;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
    }

    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }

    .audio-section,
    .transcript-section,
    .payment-section {
        padding: 12px;
    }

    .payment-buttons {
        max-width: 95%;
    }

    .form-wrapper {
        padding: 12px;
    }

    .form-title {
        font-size: 1.3rem;
        padding: 10px 16px;
    }

    /* Time picker responsive styles */
    .scheduler-fields {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .form-group.compact input[type="time"],
    .form-group.compact select {
        font-size: 16px;
        padding: 14px 12px;
        min-height: 48px;
    }

    .time-picker-wrapper {
        padding: 10px 8px;
        min-height: 54px;
        gap: 3px;
        border-radius: 10px;
    }

    .time-select {
        font-size: 9px;
        padding: 8px 0;
        min-height: auto;
        font-weight: 600;
    }

    .time-select option {
        padding: 10px 12px;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .time-separator {
        font-size: 1.1rem;
        padding: 0 1px;
    }

    .form-group.compact label {
        font-size: 0.9rem;
        font-weight: 600;
    }

    .call-scheduler-message {
        max-width: 92%;
    }
}

@media (max-width: 600px) {
    /* Medium small devices */
    .time-picker-wrapper {
        padding: 12px 10px;
        min-height: 56px;
        gap: 3px;
        border-radius: 12px;
    }

    .time-select {
        font-size: 9px;
        padding: 8px 0;
        font-weight: 600;
    }

    .time-select option {
        padding: 12px 14px;
        font-size: 1rem;
        line-height: 1.5;
    }

    .time-separator {
        font-size: 1.2rem;
        padding: 0 2px;
    }

    .scheduler-fields {
        gap: 16px;
    }

    .form-group.compact label {
        font-size: 0.95rem;
    }

    .call-scheduler-message {
        max-width: 94%;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.2rem;
    }

    .prev-btn {
        left: 8px;
    }

    .next-btn {
        right: 8px;
    }
    
    .transcript-text,
    .form-info-text,
    .payment-section h2 {
        max-width: 90%;
    }

    /* Enhanced time picker for very small devices */
    .call-scheduler-message {
        max-width: 95%;
    }

    .scheduler-fields {
        gap: 14px;
    }

    .form-group.compact input[type="time"],
    .form-group.compact select {
        font-size: 16px;
        padding: 16px 14px;
        min-height: 52px;
        border-width: 2px;
    }

    .time-picker-wrapper {
        padding: 12px 10px;
        min-height: 58px;
        border-width: 2px;
        gap: 3px;
        border-radius: 12px;
    }

    .time-select {
        font-size: 9px;
        padding: 10px 0;
        font-weight: 600;
        line-height: 1.3;
    }

    .time-select option {
        padding: 12px 14px;
        font-size: 1rem;
        line-height: 1.6;
    }

    .time-select:hover {
        background: #f5f5f5;
    }

    .time-separator {
        font-size: 1.5rem;
        padding: 0 6px;
        font-weight: 900;
    }

    .form-group.compact input[type="time"]::-webkit-calendar-picker-indicator {
        width: 24px;
        height: 24px;
        cursor: pointer;
    }

    .form-group.compact label {
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 8px;
    }
}

@media (max-width: 375px) {
    /* iPhone SE, small phones */
    .form-wrapper {
        padding: 10px;
    }

    .time-picker-wrapper {
        padding: 14px 10px;
        min-height: 60px;
        gap: 3px;
    }

    .time-select {
        font-size: 9px;
        padding: 10px 0;
        line-height: 1.3;
    }

    .time-select option {
        padding: 10px 12px;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .time-separator {
        font-size: 1.5rem;
        padding: 0 4px;
    }

    .scheduler-fields {
        gap: 16px;
    }

    .form-group.compact label {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .call-scheduler-message {
        max-width: 96%;
        padding: 14px 16px;
    }

    .call-scheduler-message p {
        font-size: 1rem;
    }
}

@media (max-width: 320px) {
    /* Very small devices like iPhone 5/SE */
    .time-picker-wrapper {
        padding: 12px 8px;
        min-height: 58px;
        gap: 2px;
    }

    .time-select {
        font-size: 9px;
        padding: 10px 0;
        line-height: 1.2;
    }

    .time-select option {
        padding: 10px 12px;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .time-separator {
        font-size: 1.4rem;
        padding: 0 4px;
    }

    .form-title {
        font-size: 1.1rem;
        padding: 10px 12px;
    }

    .call-scheduler-message {
        max-width: 98%;
        padding: 12px 14px;
    }

    .scheduler-fields {
        gap: 14px;
    }
}

/* Landscape orientation for small devices */
@media (max-height: 600px) and (orientation: landscape) {
    .time-picker-wrapper {
        min-height: 48px;
        padding: 8px 8px;
    }

    .time-select {
        padding: 8px 0;
        font-size: 9px;
    }

    .time-separator {
        font-size: 1.5rem;
    }

    .scheduler-fields {
        gap: 12px;
    }
}
