/* SMART Philippines Official Style - Responsive Design */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: 
        linear-gradient(135deg, rgba(0, 176, 79, 0.85) 0%, rgba(0, 102, 204, 0.75) 100%),
        url('smart-bro-home-wifi-gigalife-app-v0-k029zviy6ajb1.jpg') center center/cover no-repeat fixed;
    min-height: 100vh;
    position: relative;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -2;
    pointer-events: none;
}

/* SMART Brand Colors */
:root {
    --smart-primary: #00b04f;     /* SMART Green */
    --smart-secondary: #0066cc;   /* SMART Blue */
    --smart-accent: #ff6b35;      /* Orange accent */
    --smart-dark: #0d1117;
    --smart-light: #f8f9fa;
    --smart-gray: #6c757d;
    --smart-border: #dee2e6;
    --smart-success: #28a745;
    --smart-warning: #ffc107;
    --smart-danger: #dc3545;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Container and Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 0;
}

/* Header Styles */
.header {
    padding: 20px 0;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.logo-image {
    display: block;
    margin: 0 auto;
    max-width: 200px;
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px 0;
}

.form-container,
.confirmation-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 1;
}

/* Typography */
.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--smart-dark);
    text-align: center;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--smart-primary), var(--smart-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.3));
    line-height: 1.2;
}

.subtitle {
    text-align: center;
    color: var(--smart-gray);
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* Form Styles */
.verification-form {
    max-width: 450px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--smart-dark);
    font-size: 0.95rem;
}

.mobile-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--smart-border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-input:focus {
    outline: none;
    border-color: var(--smart-primary);
    box-shadow: 0 0 0 3px rgba(0, 176, 79, 0.1);
}

.mobile-input.error {
    border-color: var(--smart-danger);
}

.input-error {
    color: var(--smart-danger);
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.input-error.show {
    display: block;
}

/* Button Styles */
.check-button,
.confirm-button {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--smart-primary), #00a045);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(0, 176, 79, 0.3);
}

.check-button:hover,
.confirm-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #00a045, var(--smart-primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.confirm-button:disabled {
    background: var(--smart-gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Alert Message */
.alert-message {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid var(--smart-warning);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(255, 193, 7, 0.2);
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-text {
    color: #856404;
    font-size: 1rem;
    line-height: 1.5;
}

/* Plans Section */
.plans-section {
    margin: 25px 0;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--smart-dark);
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.3;
}

.section-subtitle {
    text-align: center;
    color: var(--smart-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

/* Plan Card Styles */
.plan-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(222, 226, 230, 0.6);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.plan-card:hover {
    border-color: var(--smart-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 176, 79, 0.15);
}



.plan-card.selected {
    border-color: var(--smart-primary);
    background: linear-gradient(135deg, #f8fff9, #e8f5e8);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--smart-accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-header {
    text-align: center;
    margin-bottom: 16px;
}

.plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--smart-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--smart-primary);
    margin-bottom: 4px;
    line-height: 1;
}

.plan-validity {
    color: var(--smart-gray);
    font-size: 0.85rem;
}

.plan-features ul {
    list-style: none;
    margin-bottom: 18px;
}

.plan-features li {
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.plan-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--smart-success);
    font-weight: bold;
    font-size: 0.8rem;
}

.select-plan-btn {
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    color: var(--smart-primary);
    border: 2px solid var(--smart-primary);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.select-plan-btn:hover,
.plan-card.selected .select-plan-btn {
    background: var(--smart-primary);
    color: white;
}

/* Agreement Section */
.agreement-section {
    margin: 20px 0;
    padding: 16px;
    background: rgba(248, 249, 250, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.agreement-checkbox {
    margin-top: 4px;
    transform: scale(1.2);
    accent-color: var(--smart-primary);
}

.agreement-label {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--smart-dark);
}

.terms-link {
    color: var(--smart-primary);
    text-decoration: none;
    font-weight: 600;
}

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

/* Action Section */
.action-section {
    text-align: center;
    margin-top: 20px;
}

.payment-note {
    margin-top: 12px;
    color: var(--smart-gray);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Terms Section */
.terms-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 1;
}

.terms-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--smart-dark);
    margin-bottom: 18px;
    text-align: center;
    line-height: 1.3;
}

.terms-item {
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(222, 226, 230, 0.6);
}

.terms-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.terms-item h3 {
    color: var(--smart-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.terms-item p {
    color: var(--smart-gray);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    color: var(--smart-gray);
    font-size: 0.9rem;
    border-top: 1px solid var(--smart-border);
    margin-top: 40px;
}

/* Responsive Design */

/* Tablet Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    
    .form-container,
    .confirmation-container {
        padding: 20px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    

    
    .plan-card:hover {
        transform: translateY(-2px);
    }
    
    .logo-image {
        max-width: 180px;
        height: 55px;
    }
    
    .terms-section {
        padding: 20px;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header {
        padding: 15px 0;
        margin-bottom: 15px;
    }
    
    .form-container,
    .confirmation-container {
        padding: 16px;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .mobile-input {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    .check-button,
    .confirm-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .plan-card {
        padding: 16px;
    }
    
    .plan-price {
        font-size: 1.8rem;
    }
    
    .alert-message {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 12px;
    }
    
    .checkbox-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .agreement-checkbox {
        margin-top: 0;
    }
    
    .logo-image {
        max-width: 150px;
        height: 45px;
    }
    
    .terms-section {
        padding: 16px;
    }
    
    .agreement-section {
        padding: 12px;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .form-container,
    .confirmation-container {
        padding: 50px;
    }
    
    .logo-image {
        max-width: 300px;
        height: 100px;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 320px) {
    .logo-image {
        max-width: 140px;
        height: 45px;
    }
}

/* Small Tablets and Large Phones */
@media (min-width: 481px) and (max-width: 768px) {
    .logo-image {
        max-width: 220px;
        height: 70px;
    }
}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-placeholder {
        background-size: contain;
    }
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .form-container,
    .confirmation-container {
        background: rgba(255, 255, 255, 0.85) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    }
    
    .plan-card {
        background: rgba(255, 255, 255, 0.88) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    }
    
    .terms-section {
        background: rgba(255, 255, 255, 0.85) !important;
    }
    
    .agreement-section {
        background: rgba(248, 249, 250, 0.75) !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .check-button,
    .confirm-button,
    .select-plan-btn {
        display: none;
    }
    
    .container {
        box-shadow: none;
    }
    
    .form-container,
    .confirmation-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Accessibility */
.check-button:focus,
.confirm-button:focus,
.select-plan-btn:focus,
.mobile-input:focus,
.agreement-checkbox:focus {
    outline: 2px solid var(--smart-primary);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--smart-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Visual Effects */
.form-container::before,
.confirmation-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--smart-primary), var(--smart-secondary), var(--smart-accent));
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container,
.confirmation-container,
.terms-section {
    animation: fadeInUp 0.6s ease-out;
}

.plan-card {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: calc(var(--index, 0) * 0.1s);
}

/* Interactive Elements */
.mobile-input:focus {
    transform: translateY(-1px);
}

.check-button:active,
.confirm-button:active {
    transform: translateY(1px);
}

/* Gradient Text Effects */
.plan-price {
    color: var(--smart-primary);
}

/* Enhanced Shadows */
.plan-card.selected {
    box-shadow: 0 12px 32px rgba(0, 176, 79, 0.25);
}