/* Reset and Base Styles */
*, *:before, *:after {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    border: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #ffffff;
    margin: 0;
}

/* Progress Indicator */
.progress-indicator {
    width: 0%;
    height: 5px;
    background: #ffffff;
    position: fixed;
    top: 0;
    transition: width 0.6s ease;
    z-index: 9999;
}

/* Container System */
.container {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

/* Main Content */
.main-content {
    min-height: 100vh;
    background-color: #ffffff;
}

/* Success Section */
.success-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.success-item {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 760px;
    margin: 0 auto;
}

.success-icon {
    width: 70px;
    height: 70px;
    margin-right: 12px;
    flex-shrink: 0;
}

.favicon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 10px;
    box-sizing: border-box;
}

.success-text h1 {
    color: #3a3a3a;
    font-weight: 500;
    font-size: 42px;
    margin: 0;
    line-height: 1.35;
}

/* Instructions Section */
.instructions-section {
    padding-bottom: 0;
}

.instruction-text {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 5px;
}

.instruction-text p {
    font-size: 26px;
    color: #545454;
    margin: 0 0 10px 0;
    line-height: 1.55;
    font-weight: 400;
}

.instruction-text strong {
    font-weight: 700;
}

.instruction-image {
    text-align: center;
    margin-bottom: 50px;
}

/* Ensure equal space before final heading */
.instruction-image:last-of-type {
    margin-bottom: 72px;
}

.responsive-image {
    max-width: 912px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18), 4px 0 8px rgba(0, 0, 0, 0.18), -4px 0 8px rgba(0, 0, 0, 0.18);
}

/* Final Section */
.final-section {
    padding-top: 0;
    padding-bottom: 72px;
    text-align: center;
}

.final-text h2 {
    color: #3a3a3a;
    font-size: 42px;
    margin: 0;
    font-weight: 500;
    line-height: 1.35;
}

/* Responsive Design */

/* Tablets */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .success-item {
        max-width: 620px;
    }
    
    .instruction-text {
        max-width: 620px;
    }
    
    .responsive-image {
        max-width: 744px;
    }
}

@media screen and (max-width: 960px) {
    .container {
        max-width: 640px;
        padding: 0 20px;
    }
    
    .success-section {
        padding-top: 45px;
        padding-bottom: 45px;
    }
    
    .success-item {
        max-width: 100%;
    }
    
    .success-icon {
        width: 65px;
        height: 65px;
        margin-right: 10px;
    }
    
    .success-text h1 {
        font-size: 36px;
    }
    
    .instruction-text {
        max-width: 100%;
        padding-bottom: 12px;
    }
    
    .instruction-image {
        margin-bottom: 35px;
    }
    
    .instruction-image:last-of-type {
        margin-bottom: 54px;
    }
    
    .final-section {
        padding-top: 0;
        padding-bottom: 54px;
    }
    
    .final-text h2 {
        font-size: 36px;
    }
}

/* Mobile */
@media screen and (max-width: 640px) {
    .success-icon {
        width: 55px;
        height: 55px;
    }
    
    .success-text h1 {
        font-size: 36px;
    }
    
    .instruction-text p {
        font-size: 20px;
    }
    
    .final-text h2 {
        font-size: 36px;
    }
}

@media screen and (max-width: 480px) {
    .success-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .instructions-section {
        padding-bottom: 0;
    }
    
    .instruction-text {
        padding-bottom: 8px;
    }
    
    .instruction-image {
        margin-bottom: 25px;
    }
    
    .instruction-image:last-of-type {
        margin-bottom: 72px;
    }
    
    .final-section {
        padding-top: 0;
        padding-bottom: 72px;
    }
    
    .success-item {
        flex-direction: column;
        text-align: center;
    }
    
    .success-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .container {
        padding: 0 20px;
    }
}

/* Landscape orientation for small screens */
@media screen and (max-height: 480px) and (orientation: landscape) {
    .success-text h1 {
        font-size: 36px;
    }
    
    .instruction-text p {
        font-size: 20px;
    }
    
    .final-text h2 {
        font-size: 36px;
    }
}

/* Goodbye Page */
.goodbye-main {
    min-height: 100vh;
    background-color: #ffffff;
    padding: 60px 20px 0;
}

.goodbye-section {
    width: 100%;
}

.goodbye-container {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.goodbye-title {
    color: #535353;
    font-weight: 400;
    font-size: 28px;
    margin: 0 0 60px;
}

@media screen and (max-width: 480px) {
    .goodbye-main {
        padding: 60px 20px 0;
    }
}