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

:root {
    /* Colores principales */
    --primary-pink: #E91E8C;
    --primary-pink-hover: #D01B7E;
    --primary-pink-light: #FFB3D9;
    
    /* Colores de texto */
    --text-primary: #1A1A1A;
    --text-secondary: #5A5A5A;
    --text-placeholder: #58245A;
    --text-label: #58245A;
    
    /* Colores de fondo */
    --bg-input: #FDE8F3;
    --bg-input-hover: #FACCE5;
    --bg-white: #FFFFFF;
    
    /* Colores de estado */
    --success-green: #4CAF50;
    --success-bg: #E8F5E9;
    --success-border: #81C784;
    
    /* Otros */
    --border-default: #E0E0E0;
    --shadow-button: rgba(233, 30, 140, 0.25);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.app-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

.main-content {
    width: 100%;
    max-width: 400px;
}

.form-container {
    background: var(--bg-white);
    padding: 20px;
    width: 100%;
}

/* Logo */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.logo {
    max-width: 160px;
    height: auto;
}

/* Title */
.page-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: -0.3px;
}

/* Form */
.recharge-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Input Groups */
.input-group {
    position: relative;
    margin-bottom: 4px;
}

.form-input {
    width: 100%;
    height: 56px;
    padding: 20px 16px 6px 16px;
    font-size: 16px;
    font-weight: 400;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 12px;
    background-color: var(--bg-input);
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus {
    background-color: var(--bg-white);
    border-bottom: 2px solid var(--primary-pink);
    border-radius: 12px 12px 0 0;
    padding-top: 26px;
    padding-bottom: 6px;
}

.form-input:not(:placeholder-shown) {
    padding-top: 26px;
    padding-bottom: 6px;
}

.form-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-placeholder);
    pointer-events: none;
    transition: all 0.2s ease;
    background-color: transparent;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: 8px;
    transform: translateY(0);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-label);
}

/* Dropdown Groups */
.dropdown-group {
    margin-bottom: 4px;
}

.dropdown-container {
    position: relative;
    background-color: var(--bg-input);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.dropdown-container.active {
    background-color: var(--bg-input);
}

.dropdown-label {
    position: absolute;
    left: 16px;
    top: 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-placeholder);
    transition: all 0.2s ease;
    pointer-events: none;
}

.dropdown-label.active {
    color: var(--text-label);
}

.dropdown-select {
    width: 100%;
    height: 56px;
    padding: 24px 40px 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-radius: 12px;
}

.dropdown-value {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary);
}

.dropdown-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 12px;
    transition: transform 0.2s ease;
    pointer-events: none;
}

/* Bank Select */
.bank-select {
    width: 100%;
    height: 56px;
    padding: 8px 40px 8px 16px;
    font-size: 16px;
    font-weight: 400;
    border: none;
    border-radius: 12px;
    background-color: var(--bg-input);
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.2s ease;
}

.bank-select:focus {
    background-color: var(--bg-white);
    box-shadow: 0 0 0 2px var(--primary-pink);
}

.bank-select option {
    padding: 12px;
    font-size: 16px;
}

.bank-select option:first-child {
    color: var(--text-placeholder);
}

/* Verification Container */
.verification-container {
    margin: 20px 0;
}

.verification-box {
    background-color: var(--success-bg);
    border: 2px solid var(--success-border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.verification-box:hover {
    border-color: var(--success-green);
}

.verification-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

#verificationCheck {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-custom {
    width: 32px;
    height: 32px;
    border: 2.5px solid var(--success-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: all 0.2s ease;
    background-color: transparent;
}

.checkbox-custom i {
    color: var(--success-green);
    font-size: 16px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

#verificationCheck:checked ~ .verification-label .checkbox-custom i {
    opacity: 1;
    transform: scale(1);
}

.verification-text {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.4;
}

/* PSE Information */
.pse-info {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
    margin: 16px 0 24px 0;
}

/* Continue Button */
.continue-button {
    width: 100%;
    height: 56px;
    padding: 0 24px;
    font-size: 17px;
    font-weight: 600;
    font-family: inherit;
    color: var(--bg-white);
    background: var(--primary-pink);
    border: none;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px var(--shadow-button);
    letter-spacing: 0.3px;
}

.continue-button:hover {
    background: var(--primary-pink-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--shadow-button);
}

.continue-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px var(--shadow-button);
}

/* Help Link */
.help-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-pink);
    text-decoration: none;
    transition: all 0.2s ease;
}

.help-link span {
    border-bottom: 1px solid var(--primary-pink);
    padding-bottom: 1px;
}

.help-link:hover {
    color: var(--primary-pink-hover);
}

.help-link:hover span {
    border-bottom-color: var(--primary-pink-hover);
}

/* Confirmation View */
.info-card {
    background-color: #F5F5F7;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 32px;
}

.info-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(88, 36, 90, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-label);
    margin-bottom: 4px;
}

.info-value {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Back Button */
.back-button {
    width: 100%;
    height: 56px;
    padding: 0 24px;
    font-size: 17px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-white);
    border: 2px solid var(--border-default);
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
    letter-spacing: 0.3px;
}

.back-button:hover {
    background: var(--bg-input);
    border-color: var(--text-secondary);
}

/* Custom Dropdown */
.custom-dropdown {
    cursor: pointer;
}

.custom-dropdown .dropdown-select {
    padding-top: 8px;
}

.custom-dropdown.active .dropdown-label {
    top: 12px;
    font-size: 12px;
    color: var(--text-label);
}

.custom-dropdown.active .dropdown-select {
    padding-top: 24px;
    padding-bottom: 8px;
}

/* Bank Modal */
.bank-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
}

.bank-modal.active {
    display: flex;
}

.bank-modal-content {
    background: var(--bg-white);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.bank-modal-header {
    background-color: var(--bg-input);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 12px;
    margin: 12px;
}

.bank-modal-selected {
    display: flex;
    flex-direction: column;
}

.bank-modal-header .dropdown-label {
    position: static;
    font-size: 12px;
    margin-bottom: 2px;
}

.bank-modal-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.bank-modal-header .dropdown-icon {
    position: static;
    transform: none;
    color: var(--text-primary);
}

.bank-modal-body {
    padding: 0 0 12px 0;
    max-height: 60vh;
    overflow-y: auto;
}

.bank-modal-instruction {
    padding: 16px 20px;
    font-size: 15px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-default);
}

.bank-list {
    max-height: 350px;
    overflow-y: auto;
}

.bank-option {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid var(--border-default);
}

.bank-option:last-child {
    border-bottom: none;
}

.bank-option:hover {
    background-color: var(--bg-input);
}

.bank-option.selected {
    background-color: var(--bg-input);
}

/* Custom scrollbar for bank list */
.bank-list::-webkit-scrollbar {
    width: 6px;
}

.bank-list::-webkit-scrollbar-track {
    background: transparent;
}

.bank-list::-webkit-scrollbar-thumb {
    background-color: var(--border-default);
    border-radius: 3px;
}

.bank-list::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .form-container {
        padding: 16px;
    }

    .recharge-form {
        gap: 12px;
    }

    .form-input,
    .dropdown-select,
    .bank-select {
        height: 52px;
    }

    .continue-button {
        height: 52px;
        font-size: 16px;
    }

    .checkbox-custom {
        width: 28px;
        height: 28px;
    }

    .checkbox-custom i {
        font-size: 14px;
    }

    .verification-text {
        font-size: 14px;
    }

    .pse-info {
        font-size: 13px;
        margin: 12px 0 20px 0;
    }
}

@media (max-width: 360px) {
    .page-title {
        font-size: 22px;
    }

    .form-input,
    .dropdown-select,
    .bank-select {
        font-size: 15px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .form-label,
    .dropdown-label {
        left: 14px;
    }

    .continue-button {
        height: 48px;
        font-size: 15px;
    }
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-pink);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline-offset: 4px;
}

/* Remove input number arrows */
input[type="tel"]::-webkit-inner-spin-button,
input[type="tel"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="tel"],
input[type="number"] {
    -moz-appearance: textfield;
}