/* PostScript Pharmacy - Professional Healthcare Design System */

/* 
Color Palette:
Primary: #0B7A75 (Deep Teal - trust, medical)
Secondary: #19B5B1 (Mint - freshness, cleanliness) 
Accent: #FF6B35 (Warm Coral - approachable CTAs)
Dark: #1A2332 (Professional Navy)
Gray: #64748B (Warm Gray)
Light Gray: #F8FAFC
Success: #10B981
*/

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1A2332;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #E5E7EB;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: #0B7A75;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Professional Logo Design */
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #0B7A75 0%, #19B5B1 100%);
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    color: white;
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #64748B;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: #0B7A75;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #1A2332;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section - Professional Healthcare */
.hero {
    background: linear-gradient(135deg, #0B7A75 0%, #0A6B66 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.coming-soon-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
}

.trust-points {
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
    opacity: 0.95;
    font-weight: 400;
}

.cta-buttons {
    margin-top: 2rem;
    /* Add these properties to ensure correct layout */
    display: flex; 
    justify-content: center;
    gap: 1rem; /* Adds space between the buttons */
}

/* Add this new button class */
.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-light:hover {
    background: white;
    color: #0B7A75; /* Primary color (Deep Teal) on hover */
}

/* Professional Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: -0.2px;
}

.btn-primary {
    background: #FF6B35;
    color: white;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.25);
}

.btn-primary:hover {
    background: #E55A2B;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: #64748B;
    color: white;
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #0B7A75;
    border: 2px solid #0B7A75;
}

.btn-outline:hover {
    background: #0B7A75;
    color: white;
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Features Section - Clean Healthcare Style */
.how-it-works-section {
    padding: 80px 0;
    background: #F8FAFC;
}

.how-it-works-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1A2332;
    font-weight: 700;
    letter-spacing: -1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    background: white;
    transition: all 0.3s;
    border: 1px solid #E5E7EB;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #19B5B1;
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #19B5B1 0%, #0B7A75 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: #1A2332;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.feature-card p {
    color: #64748B;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Price Check Section - Medical Clean */
.price-check-section {
    padding: 80px 0;
    background: white;
}

.price-check-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #1A2332;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-lead {
    text-align: center;
    color: #64748B;
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
}

/* Metadata Status - Subtle */
.metadata-status {
    text-align: center;
    padding: 0.625rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.metadata-status.loading {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.metadata-status.success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.metadata-status.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* Price Search Container - Professional Card */
.price-search-container {
    max-width: 640px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid #E5E7EB;
}

/* Step Progress Indicator - Clean Medical */
.step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #E5E7EB;
    z-index: 0;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.step-indicator.active {
    opacity: 1;
}

.step-indicator.completed {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #94A3B8;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.step-indicator.active .step-number {
    background: #0B7A75;
    border-color: #0B7A75;
    color: white;
    box-shadow: 0 4px 12px rgba(11, 122, 117, 0.25);
}

.step-indicator.completed .step-number {
    background: #10B981;
    border-color: #10B981;
    color: white;
}

.step-indicator.completed .step-number::after {
    content: '✓';
    position: absolute;
    font-size: 1.1rem;
}

.step-label {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: #64748B;
    white-space: nowrap;
    font-weight: 500;
}

/* Form Elements - Healthcare Polish */
.search-step {
    display: none;
}

.search-step.active {
    display: block;
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.search-step label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.875rem;
    color: #1A2332;
    font-size: 0.9375rem;
    letter-spacing: -0.2px;
}

.input-wrapper {
    position: relative;
    margin-bottom: 1.25rem;
}

.search-step input[type="text"],
.search-step input[type="number"],
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #FAFBFC;
}

.search-step input:focus,
.form-select:focus {
    outline: none;
    border-color: #19B5B1;
    background: white;
    box-shadow: 0 0 0 3px rgba(25, 181, 177, 0.1);
}

/* Autocomplete Dropdown - Clean Medical */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #E5E7EB;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #F3F4F6;
    font-size: 0.9375rem;
}

.autocomplete-item:hover {
    background: linear-gradient(90deg, #F0FDFA 0%, #E6FFFA 100%);
    padding-left: 1.25rem;
}

.autocomplete-item.selected,
.autocomplete-item.highlighted {
    background: #F0FDFA;
}

.autocomplete-item.no-matches {
    color: #94A3B8;
    font-style: italic;
    cursor: default;
}

/* Quantity Options - Medical Style */
.quantity-options {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.quantity-preset {
    flex: 1;
    padding: 0.875rem;
    border: 2px solid #E5E7EB;
    background: #FAFBFC;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.9375rem;
}

.quantity-preset:hover {
    border-color: #19B5B1;
    background: white;
}

.quantity-preset.active {
    background: #0B7A75;
    color: white;
    border-color: #0B7A75;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 1.75rem;
    gap: 1rem;
}

/* Price Result - Professional Medical Card */
.price-result {
    animation: slideUp 0.4s ease;
}

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

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #F3F4F6;
}

.result-header h3 {
    color: #1A2332;
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.drug-details {
    background: #F8FAFC;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.75rem;
    border: 1px solid #E5E7EB;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #64748B;
    font-size: 0.9375rem;
}

.detail-value {
    color: #1A2332;
    font-weight: 500;
}

.price-breakdown {
    background: linear-gradient(135deg, #F0FDFA 0%, #FFFFFF 100%);
    border: 2px solid #19B5B1;
    border-radius: 12px;
    padding: 1.5rem;
}

.price-line {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    font-size: 0.9375rem;
    color: #475569;
}

.price-line.total {
    border-top: 2px solid #19B5B1;
    margin-top: 0.75rem;
    padding-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0B7A75;
}

.final-price {
    font-size: 1.75rem;
    color: #0B7A75;
}

.result-cta {
    margin-top: 2rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #E5E7EB;
}

/* Error Message - Soft Medical */
.error-message {
    text-align: center;
    padding: 2rem;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 12px;
    color: #991B1B;
}

.error-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* Disclaimer */
.disclaimer {
    margin-top: 2.5rem;
    text-align: center;
    color: #94A3B8;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Waitlist Section - Clean Medical */
.waitlist-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.waitlist-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #1A2332;
    font-weight: 700;
    letter-spacing: -1px;
}

.waitlist-lead {
    text-align: center;
    color: #64748B;
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
}

.waitlist-form-container {
    max-width: 520px;
    margin: 0 auto;
}

.waitlist-form .form-group {
    display: flex;
    gap: 1rem;
}

.waitlist-form input[type="email"] {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
}

.waitlist-form input[type="email"]:focus {
    outline: none;
    border-color: #19B5B1;
    box-shadow: 0 0 0 3px rgba(25, 181, 177, 0.1);
}

.privacy-note {
    text-align: center;
    margin-top: 1.25rem;
    color: #64748B;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.waitlist-success {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, #D1FAE5 0%, #ECFDF5 100%);
    border-radius: 12px;
    border: 1px solid #A7F3D0;
    position: relative;
    z-index: 10;
    margin: 2rem 0;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Make sure success message is visible when shown */
.waitlist-success[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Waitlist Error Styling */
.waitlist-error {
    color: #DC2626; /* A professional red for errors */
    background-color: #FEE2E2;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid #FCA5A5;
}

/* Animation for success messages */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Apply animation when the waitlist success message is displayed */
.waitlist-success[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: fadeIn 0.5s ease-out forwards;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #10B981;
}

/* Footer - Professional */
.footer {
    background: #1A2332;
    color: white;
    padding: 48px 0;
    text-align: center;
}

.footer-simple p {
    margin: 0.625rem 0;
    color: #CBD5E1;
    font-size: 0.9375rem;
}

.footer-simple p strong {
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
}

.footer a {
    color: #19B5B1;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    opacity: 0.7;
    font-size: 0.875rem;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.button-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    animation: rotate 1s linear infinite;
}

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

.spinner .path {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Mobile Responsive - Clean Medical */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .step-progress {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    
    .step-progress::before {
        display: none;
    }
    
    .step-indicator {
        flex-direction: row;
        gap: 1rem;
        width: 100%;
    }
    
    .step-navigation {
        flex-direction: column;
    }
    
    .quantity-options {
        flex-direction: column;
    }
    
    .waitlist-form .form-group {
        flex-direction: column;
    }
    
    .price-search-container {
        padding: 1.75rem;
    }
    
    .how-it-works-section h2,
    .price-check-section h2,
    .waitlist-section h2 {
        font-size: 1.875rem;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid #0B7A75;
    outline-offset: 2px;
}

button:focus-visible {
    outline-offset: 0;
}