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

body {
    background-color: #ffffff;
    color: #2E3137;
    min-height: 100vh;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.back-button, .help-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* Main Content Styles */
main {
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #2E3137;
}

/* Input Container Styles */
.input-container {
    margin-bottom: 16px;
}

.phone-input {
    display: flex;
    align-items: center;
    border: 1px solid #A9A9A9;
    border-radius: 8px;
    padding: 12px 16px;
    background-color: #ffffff;
}

.phone-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
}

input[type="tel"] {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #2E3137;
    background: transparent;
}

input[type="tel"]::placeholder {
    color: #BFC9D9;
}

/* Continue Button Styles */
.continue-button {
    background-color: #E7EEF6;
    color: #9FB1C7;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-bottom: 24px;
    transition: background-color 0.3s, color 0.3s;
}

.continue-button:hover {
    background-color: #D3E2F7;
}

.continue-button.active {
    background-color: #42B549;
    color: #FFFFFF;
}

/* Divider Styles */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #9FB1C7;
    font-size: 14px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: #E5E7E9;
}

.divider-text {
    padding: 0 16px;
}

/* Login Options Styles */
.login-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.login-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid #E5E7E9;
    border-radius: 8px;
    background-color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.google-logo {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

.email-icon {
    margin-right: 12px;
}

/* Terms Styles */
.terms {
    text-align: center;
    font-size: 14px;
    color: #6C727C;
    line-height: 1.5;
}

.terms-link, .privacy-link {
    color: #42B549;
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover, .privacy-link:hover {
    text-decoration: underline;
}

/* style.css */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f7f7f7; /* Light grey background similar to Tokopedia */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.card-form-container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
}

h2 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
    position: relative; /* Needed for absolute positioning of card logos */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0; /* Lighter border */
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #03AC0E; /* Tokopedia green border on focus */
    box-shadow: 0 0 0 2px rgba(3, 172, 14, 0.2);
}

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

.form-row {
    display: flex;
    gap: 20px; /* Space between expiry and CVV */
}

.expiry-group,
.cvv-group {
    flex: 1;
}

/* Card Logos */
.card-logo {
    position: absolute;
    right: 15px;
    top: 35px; /* Adjust based on label height and input padding */
    height: 24px;
    opacity: 0.5; /* Initially dim */
    transition: opacity 0.3s ease;
}

/* Specific logo positioning if needed */
.visa {
    /* right: 15px; */
}
.mastercard {
    right: 50px; /* Example: position next to Visa */
}

/* Show logo when input has content or focus - JS might be better for dynamic display */
/* Basic CSS approach: */
/* input#card-number:not(:placeholder-shown) + .card-logo { 
    opacity: 1; 
} */

/* CVV Tooltip */
.cvv-group {
    position: relative;
}

.tooltip-icon {
    position: absolute;
    right: 15px;
    top: 38px; /* Align with input field */
    background-color: #eee;
    color: #777;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.tooltip-text {
    visibility: hidden;
    width: 160px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position above the icon */
    left: 50%;
    margin-left: -80px; /* Center the tooltip */
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip-icon:hover + .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #03AC0E; /* Tokopedia Green */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px; /* Add some space above the button */
}

.submit-btn:hover {
    background-color: #028a0b; /* Darker green on hover */
}

/* Responsive adjustments */
@media (max-width: 500px) {
    .card-form-container {
        padding: 20px;
        margin: 15px;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .form-row {
        flex-direction: column; /* Stack expiry and CVV on smaller screens */
        gap: 0; /* Remove gap when stacked */
    }

    .expiry-group {
        margin-bottom: 20px; /* Add margin when stacked */
    }

    .form-group input[type="text"],
    .form-group input[type="password"] {
        padding: 10px 12px;
        font-size: 15px;
    }

    .submit-btn {
        padding: 12px;
        font-size: 15px;
    }

    .card-logo {
        top: 32px;
        height: 20px;
    }
    .mastercard {
        right: 45px;
    }
    .tooltip-icon {
        top: 35px;
    }
}

