/* Global Styles */
:root {
    --primary-color: #4cd964; /* Green from the website */
    --primary-dark: #36b34a;
    --secondary-color: #222;
    --light-gray: #e0e0e0; /* Darker gray for better contrast */
    --text-color: #333;
    --text-light: #777;
    --white: #fff;
    --success-color: #4cd964;
    --border-radius: 6px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #111;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* Header Styles */
header {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.logo-container:hover {
    opacity: 0.9;
}

.logo {
    height: 50px;
    margin-right: 15px;
}

/* Hamburger menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

nav {
    transition: var(--transition);
}

nav ul {
    display: flex;
    gap: 20px;
}

nav ul li a {
    padding: 10px;
    transition: var(--transition);
}

nav ul li a:hover, 
nav ul li a.active {
    color: var(--primary-color);
}

.join-now-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.join-now-btn:hover {
    background-color: var(--primary-dark);
}

/* Main Content */
main {
    padding: 0 0 60px;
}

section {
    padding: 40px 5%;
}

.section-visible {
    display: block;
}

.section-hidden {
    display: none;
}

/* Pricing Section */
#pricing {
    background-color: #111;
    color: var(--white);
    text-align: center;
    padding: 60px 5%;
}

.pricing-header {
    margin-bottom: 50px;
}

.pricing-header h2 {
    color: var(--primary-color);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.pricing-header h1 {
    font-size: 3rem;
    font-weight: 700;
}

.membership-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.membership-card {
    background-color: #1a1a1a;
    border-radius: var(--border-radius);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.membership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.membership-card h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--white);
}

.price span {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-light);
}

.features {
    margin-bottom: 30px;
    flex-grow: 1;
    text-align: left;
}

.features li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.features li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.1rem;
    margin-top: 4px;
}

.sign-up-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    margin-top: auto;
}

.sign-up-btn:hover {
    background-color: var(--primary-dark);
}

/* Sign-up Flow */
#signup-flow {
    background-color: var(--white);
    padding: 40px 5%;
}

/* Progress Tracker */
.progress-tracker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    position: sticky;
    top: 80px;
    z-index: 500;
    box-shadow: var(--box-shadow);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.step-number {
    width: 36px;
    height: 36px;
    background-color: var(--text-light);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: var(--transition);
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background-color: var(--primary-color);
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-light);
}

.progress-step.active .step-label {
    color: var(--text-color);
    font-weight: 600;
}

.progress-line {
    flex-grow: 1;
    height: 3px;
    background-color: var(--text-light);
    margin: 0 15px;
    margin-bottom: 22px;
    position: relative;
    z-index: 0;
}

/* Signup Steps */
.signup-step {
    display: none;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 80px; /* Add padding to prevent sticky buttons from overlapping content */
}

@media (max-width: 992px) {
    .signup-step {
        padding-top: 30px; /* Add more top padding for mobile to avoid progress tracker overlap */
    }
}

.signup-step.active {
    display: block;
}

.signup-step h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-color);
}

.instruction-text {
    text-align: center;
    margin: 30px 0 15px;
    color: var(--text-light);
    font-style: italic;
}

.step-hint {
    background-color: rgba(76, 217, 100, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin: 0 auto 30px;
    max-width: 600px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    display: flex;
    align-items: flex-start;
}

.step-hint i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 2px;
}

.step-hint span {
    color: var(--text-color);
    line-height: 1.5;
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    position: sticky;
    bottom: 20px;
    background-color: var(--white);
    padding: 15px 0;
    z-index: 500;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
}

.back-btn, .next-btn {
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.back-btn {
    background-color: var(--light-gray);
    color: var(--text-color);
}

.back-btn:hover:not([disabled]) {
    background-color: #e0e0e0;
}

.back-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.next-btn:hover {
    background-color: var(--primary-dark);
}

/* Step 1: App Download */
.app-download-container {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.app-info {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    margin-right: 20px;
    object-fit: cover;
    transition: var(--transition);
}

.app-icon:hover {
    transform: scale(1.05);
}

.app-details h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.app-rating {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.rating {
    font-weight: 700;
    margin-right: 10px;
}

.stars {
    color: gold;
    margin-right: 10px;
}

.reviews {
    color: var(--text-light);
    font-size: 0.9rem;
}

.app-screenshots {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding: 10px 0;
}

.app-screenshots img {
    height: 300px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
}

.app-download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    background-color: #000;
    color: var(--white);
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.download-btn i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.download-btn:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.download-btn.android {
    background-color: #3ddc84;
    color: #000;
}

/* Step 2: Registration */
.registration-container {
    display: flex;
    gap: 40px;
    align-items: center;
}

.app-mockup {
    flex-basis: 50%;
}

.phone-frame {
    width: 300px;
    margin: 0 auto;
    border: 12px solid #000;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

.phone-screen {
    height: 580px;
    background-color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-header {
    background-color: #000;
    color: var(--white);
    padding: 15px;
    display: flex;
    align-items: center;
}

.app-header img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.app-content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

.app-content h3 {
    margin-bottom: 20px;
    text-align: center;
}

.registration-form .form-group {
    margin-bottom: 15px;
}

.registration-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.waiver-group {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.waiver-group input {
    margin-right: 10px;
}

.app-footer {
    background-color: #f5f5f5;
    padding: 15px;
    text-align: center;
}

.register-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

.registration-tips {
    flex-basis: 50%;
}

.registration-tips h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.registration-tips ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.registration-tips ul li i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 4px;
}

/* Step 3: Membership Selection */
.membership-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.memberships-screen {
    background-color: #f0f0f0;
}

.user-icon {
    text-align: center;
    margin-bottom: 15px;
}

.user-icon i {
    font-size: 3rem;
    color: var(--primary-color);
}

.membership-options-app {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.membership-option {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.option-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.option-type {
    font-size: 0.8rem;
    color: var(--text-light);
}

.membership-option h4 {
    margin-bottom: 5px;
}

.membership-option p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.view-membership-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.app-nav {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 20%;
    font-size: 0.8rem;
    color: #777;
    padding: 0 5px;
}

.nav-item i {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 10px;
    display: block;
    white-space: nowrap;
}

.nav-item.active {
    color: var(--primary-color);
}

.app-footer {
    background-color: #f8f8f8;
    padding: 12px 0 8px;
    border-top: 1px solid #eee;
}

.membership-tips {
    flex-basis: 50%;
}

.selected-membership-details {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.selected-membership-details h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.price-display {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.selected-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.selected-features li i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 4px;
}

.membership-instructions h4 {
    margin-bottom: 15px;
}

.membership-instructions ol {
    padding-left: 20px;
}

.membership-instructions ol li {
    margin-bottom: 10px;
}

/* Step 4: Door Access */
.door-access-container {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.kisi-app-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.kisi-setup-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setup-step {
    display: flex;
    gap: 15px;
}

.setup-step .step-number {
    background-color: var(--primary-color);
    flex-shrink: 0;
}

.step-details h4 {
    margin-bottom: 5px;
}

/* Step 5: Confirmation */
.confirmation-content {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.success-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.confirmation-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.confirmation-content h3 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.confirmation-details {
    max-width: 500px;
    margin: 0 auto 40px;
}

.confirmation-step {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background-color: var(--white);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    text-align: left;
}

.confirmation-step i {
    color: var(--success-color);
    font-size: 1.2rem;
    margin-right: 15px;
}

.next-steps {
    margin-bottom: 30px;
}

.next-steps h3 {
    margin-bottom: 20px;
}

.next-steps ul {
    display: inline-block;
    text-align: left;
}

.next-steps ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.next-steps ul li i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 4px;
}

.finish-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition);
}

.finish-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 217, 100, 0.3);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 5% 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

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

.logo-small {
    width: 40px;
    margin-right: 10px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: #333;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #777;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .membership-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .registration-container,
    .membership-container {
        flex-direction: column;
    }
    
    .progress-tracker {
        flex-direction: column;
        gap: 15px;
        position: relative; /* Change sticky to relative for mobile */
        top: 0;
        margin-bottom: 40px; /* Add more margin at the bottom */
        padding: 15px; /* Reduce padding */
        z-index: 10; /* Lower z-index for mobile */
        background-color: rgba(224, 224, 224, 0.95); /* Slightly transparent background */
    }
    
    .progress-step {
        margin-bottom: 5px; /* Add spacing between steps */
    }
    
    .progress-line {
        width: 3px;
        height: 20px;
        margin: 0;
    }
    
    .phone-frame {
        width: 270px;
    }
    
    .phone-screen {
        height: 520px;
    }
    
    .app-mockup {
        margin-bottom: 30px;
    }
    
    .footer-links {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}

/* Tooltip styles */
.step-tooltip {
    display: none;
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 101;
}

.step-tooltip:after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
}

.progress-step {
    position: relative;
}

.progress-step:active .step-tooltip {
    display: block;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    /* Convert vertical progress tracker to horizontal for mobile */
    .progress-tracker {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        position: sticky;
        top: 0;
        z-index: 100;
        margin-bottom: 20px;
        background-color: rgba(224, 224, 224, 0.95);
    }
    
    /* Adjust step number indicators for mobile */
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    /* Hide step labels on small screens */
    .step-label {
        display: none;
    }
    
    /* Convert vertical lines to horizontal */
    .progress-line {
        width: 100%;
        height: 3px;
        margin: 0 5px;
        align-self: center;
        margin-bottom: 0;
    }
    
    header {
        padding: 15px 5%;
        position: relative;
    }
    
    .logo-container {
        z-index: 1001;
    }
    
    nav {
        position: absolute;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        z-index: 1000;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .pricing-header h1 {
        font-size: 2.2rem;
    }
    
    .app-screenshots {
        justify-content: flex-start;
        padding-bottom: 15px;
    }
    
    .app-download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .kisi-app-info {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-column {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .membership-options {
        grid-template-columns: 1fr;
    }
    
    .pricing-header h1 {
        font-size: 1.8rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .step-buttons {
        flex-direction: row;
        gap: 10px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        background-color: rgba(255, 255, 255, 0.95);
        padding: 15px;
        margin: 0;
        z-index: 1000;
        border-radius: 0;
    }
    
    /* Add extra padding to bottom of content to prevent buttons from covering content */
    .signup-step {
        padding-bottom: 120px;
    }
    
    .back-btn, .next-btn {
        width: 100%;
    }
    
    .app-screenshots img, 
    .app-screenshots div {
        height: 250px;
    }
    
    .confirmation-content {
        padding: 20px;
    }
    
    .success-icon {
        font-size: 4rem;
    }
    
    .confirmation-content h2 {
        font-size: 2rem;
    }
    
    .step-hint {
        flex-direction: column;
    }
    
    .step-hint i {
        margin-bottom: 10px;
    }
}

@media (max-width: 400px) {
    .app-info {
        flex-direction: column;
        text-align: center;
    }
    
    .app-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .app-rating {
        justify-content: center;
    }
    
    .confirmation-step {
        flex-direction: column;
        text-align: center;
    }
    
    .confirmation-step i {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
