* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(to bottom, #000000 0%, #141414 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.netflix-header {
    background-color: #000000;
    padding: 20px 40px;
    border-bottom: 1px solid #222222;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.netflix-logo {
    width: 110px;
    height: 30px;
    fill: #E50914;
}

.container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding: 90px 20px 40px;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.payment-form {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    padding: 40px 48px;
    border-radius: 4px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.9);
    width: 100%;
    max-width: 650px;
}

.announcement {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1) 0%, rgba(229, 9, 20, 0.05) 100%);
    border: 1px solid rgba(229, 9, 20, 0.3);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 28px;
    text-align: center;
}

.warning-icon {
    width: 40px;
    height: 40px;
    color: #E50914;
    margin-bottom: 12px;
}

.announcement h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.announcement p {
    color: #b3b3b3;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

.payment-form h2 {
    text-align: left;
    color: #ffffff;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.section-divider {
    margin: 20px 0 16px 0;
    padding-top: 20px;
    border-top: 1px solid #333333;
}

.section-divider h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #b3b3b3;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background-color: #333333;
    border: 1px solid #4d4d4d;
    border-radius: 4px;
    font-size: 15px;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
}

.form-group input:focus {
    outline: none;
    background-color: #454545;
    border-color: #E50914;
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.1);
}

.form-group input:hover:not(:focus) {
    border-color: #666666;
}

.form-group input::placeholder {
    color: #8c8c8c;
}

.phone-input-wrapper {
    display: flex;
    gap: 10px;
    position: relative;
}

.country-select {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 12px;
    background-color: #333333;
    border: 1px solid #4d4d4d;
    border-radius: 4px;
    cursor: pointer;
    min-width: 110px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.country-select:hover {
    border-color: #666666;
}

.country-select .flag-icon {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.country-select .country-code {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
}

.country-select .dropdown-arrow {
    color: #8c8c8c;
    font-size: 10px;
    margin-left: auto;
}

.country-dropdown {
    position: fixed;
    margin-top: 4px;
    background-color: #2b2b2b;
    border: 1px solid #4d4d4d;
    border-radius: 4px;
    width: 300px;
    max-height: 300px;
    overflow: hidden;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.country-search {
    padding: 12px;
    border-bottom: 1px solid #4d4d4d;
}

.country-search input {
    width: 100%;
    padding: 10px 12px;
    background-color: #333333;
    border: 1px solid #4d4d4d;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
}

.country-search input:focus {
    outline: none;
    border-color: #E50914;
}

.country-list {
    max-height: 240px;
    overflow-y: auto;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.country-option:hover {
    background-color: #333333;
}

.country-option img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.country-option .country-name {
    flex: 1;
    color: #ffffff;
    font-size: 14px;
}

.country-option .country-code {
    color: #b3b3b3;
    font-size: 14px;
}

.phone-input-wrapper input[type="tel"] {
    flex: 1;
}

.card-type-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 25px;
    display: none;
}

.card-type-icon.visible {
    display: block;
}

.card-logos {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding: 8px 0;
}

.card-logo {
    width: 48px;
    height: 32px;
    opacity: 0.4;
    transition: all 0.3s ease;
    cursor: pointer;
    filter: grayscale(100%);
}

.card-logo:hover {
    opacity: 0.7;
    filter: grayscale(50%);
    transform: translateY(-2px);
}

.card-logo.active {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Make step 1 more compact with 2-column layout */
#step1 .section-divider:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

#step1 .compact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

#step1 .compact-row .form-group {
    margin-bottom: 16px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background-color: #E50914;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 24px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 1px 0 rgba(0,0,0,.45);
}

.submit-btn:hover {
    background-color: #f40612;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
    transform: translateY(-1px);
}

.submit-btn:active {
    background-color: #b8070f;
    transform: translateY(0);
    box-shadow: 0 1px 0 rgba(0,0,0,.45);
}

.submit-btn:disabled {
    background-color: #444444;
    cursor: not-allowed;
    color: #8c8c8c;
}

.message {
    margin-top: 20px;
    padding: 14px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    display: none;
    letter-spacing: 0.3px;
}

.message.success {
    display: block;
    background-color: rgba(46, 125, 50, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.message.error {
    display: block;
    background-color: rgba(229, 9, 20, 0.2);
    color: #E50914;
    border: 1px solid #E50914;
}

/* Tablet and smaller desktop screens */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 100px 30px 40px;
        align-items: center;
    }
}

/* Tablet portrait and landscape */
@media (max-width: 768px) {
    .netflix-header {
        padding: 15px 20px;
    }

    .netflix-logo {
        width: 90px;
        height: 24px;
    }

    .container {
        padding: 80px 20px 30px;
        align-items: flex-start;
    }

    .payment-form {
        padding: 32px 28px;
    }

    .announcement {
        padding: 18px;
    }

    .announcement h3 {
        font-size: 17px;
    }

    .announcement p {
        font-size: 13px;
    }

    .payment-form h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .section-divider {
        margin: 24px 0 16px 0;
        padding-top: 24px;
    }

    .section-divider h3 {
        font-size: 17px;
        margin-bottom: 16px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .step-indicator {
        margin-bottom: 20px;
    }
    
    .step-line {
        width: 50px;
    }
}

/* Mobile devices */
@media (max-width: 480px) {
    .netflix-header {
        padding: 12px 16px;
    }

    .netflix-logo {
        width: 80px;
        height: 22px;
    }

    .container {
        padding: 70px 16px 24px;
    }

    .payment-form {
        padding: 28px 20px;
    }

    .announcement {
        padding: 16px;
    }

    .warning-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 10px;
    }

    .announcement h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .announcement p {
        font-size: 12px;
        line-height: 1.4;
    }

    .payment-form h2 {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .section-divider {
        margin: 20px 0 14px 0;
        padding-top: 20px;
    }

    .section-divider h3 {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-group label {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .form-group input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 14px;
        font-size: 15px;
        margin-top: 20px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
    
    .back-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .form-navigation .submit-btn {
        margin-top: 0;
    }
}

/* Very small mobile devices */
@media (max-width: 360px) {
    .payment-form {
        padding: 24px 16px;
    }

    .announcement {
        padding: 14px;
    }

    .form-group input {
        padding: 11px 12px;
    }
}

/* Landscape mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 70px 16px 20px;
        min-height: auto;
        align-items: flex-start;
    }

    .payment-form {
        padding: 24px 28px;
    }

    .announcement {
        padding: 14px;
        margin-bottom: 20px;
    }

    .warning-icon {
        width: 32px;
        height: 32px;
    }

    .payment-form h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .section-divider {
        margin: 18px 0 12px 0;
        padding-top: 18px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .submit-btn {
        margin-top: 16px;
    }
    
    .step-indicator {
        margin-bottom: 16px;
    }
    
    .form-navigation {
        margin-top: 16px;
    }
}

/* Large desktop screens */
@media (min-width: 1440px) {
    .container {
        padding: 120px 40px 60px;
    }

    .payment-form {
        padding: 50px 60px;
    }

/* Multi-step form styles */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #333333;
    border: 2px solid #4d4d4d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b3b3b3;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: #E50914;
    border-color: #E50914;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.2);
}

.step-label {
    color: #8c8c8c;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.step.active .step-label {
    color: #ffffff;
}

.step-line {
    width: 60px;
    height: 2px;
    background-color: #333333;
    margin: 0 -4px;
    margin-bottom: 24px;
}

.form-step {
    display: none !important;
}

.form-step.active {
    display: block !important;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-navigation {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.back-btn {
    padding: 16px 24px;
    background-color: #333333;
    color: #ffffff;
    border: 1px solid #4d4d4d;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.back-btn:hover {
    background-color: #454545;
    border-color: #666666;
    transform: translateX(-2px);
}

.back-btn:active {
    transform: translateX(0);
}

.form-navigation .submit-btn {
    flex: 1;
    margin-top: 0;
}

.next-btn {
    position: relative;
}

.next-btn::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.next-btn:hover::after {
    transform: translateX(4px);
}

/* Responsive adjustments for step indicator */
@media (max-width: 480px) {
    .step-indicator {
        margin-bottom: 24px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .step-line {
        width: 40px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .back-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
}
}