@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.45);
    --glass-bg: rgba(17, 24, 39, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-focus: rgba(99, 102, 241, 0.5);
    --success: #10b981;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.container {
    width: 100%;
    max-width: 540px;
    perspective: 1000px;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent), #a855f7);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, #ffffff, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    font-size: 1.1rem;
}

input, select {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.25s ease;
}

/* Remove default select styling for select element */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%239ca3af' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.75rem;
}

select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

input:focus, select:focus {
    border-color: var(--glass-border-focus);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #7c3aed, var(--accent));
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    margin-top: 1rem;
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--text-secondary);
    box-shadow: none;
    transform: none;
}

.btn-whatsapp {
    background: transparent;
    border: 1px solid #25d366;
    color: #25d366;
    margin-top: 1.5rem;
    box-shadow: none;
}

.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.08);
    color: #25d366;
    border-color: #25d366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.15);
    transform: translateY(-2px);
}

.alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.logout-link {
    color: var(--error);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: opacity 0.2s;
}

.logout-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Results Section */
.result-card {
    margin-top: 2rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px dashed rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.5rem;
}

.result-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-item:hover {
    transform: translateX(4px);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.03);
}

.service-badge-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.service-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-bosspack {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-regpack {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-jagopack {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-bigpack {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-bigpack-fast {
    background: rgba(217, 70, 239, 0.15);
    color: #f5d0fe;
    border: 1px solid rgba(217, 70, 239, 0.3);
}

.badge-interpack {
    background: rgba(99, 102, 241, 0.15);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-minipack {
    background: rgba(107, 114, 128, 0.15);
    color: #d1d5db;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.service-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.service-pricing-container {
    text-align: right;
}

.service-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.service-rate {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

input:disabled {
    background-color: rgba(255, 255, 255, 0.01);
    color: var(--text-secondary);
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.03);
}

.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

/* Pricing Grid - Desktop styles */
.service-rates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.75rem;
}

.rate-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rate-column-border {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.rate-type-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

/* Mobile responsive pricing comparison list using CSS Grid for perfect alignments */
@media (max-width: 480px) {
    .service-rates-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.25rem !important;
        text-align: left !important;
    }
    .rate-column {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        padding: 0.5rem 0 !important;
        text-align: left !important;
    }
    /* Remove vertical borders and replace with horizontal dashed separations */
    .rate-column-border {
        border-left: none !important;
        border-right: none !important;
        border-top: 1px dashed rgba(255, 255, 255, 0.08) !important;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.08) !important;
        padding: 0.6rem 0 !important;
        margin: 0.2rem 0 !important;
    }
    .rate-type-label {
        grid-column: 1 !important;
        grid-row: 1 !important;
        margin-bottom: 0 !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        color: var(--text-secondary) !important;
    }
    .service-rate {
        grid-column: 1 !important;
        grid-row: 2 !important;
        font-size: 0.72rem !important;
        color: rgba(255, 255, 255, 0.4) !important;
        margin-top: 0.15rem !important;
        margin-left: 0 !important;
    }
    .service-price {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important;
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        color: #fff !important;
        text-align: right !important;
    }
}

/* Custom Suggestions Dropdown for mobile compatibility and premium styling */
.suggestions-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.suggestion-item {
    padding: 0.85rem 1.2rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    text-align: left;
}

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

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-left: 1.4rem;
}
