/* Lefkoe Institute Design System */
:root {
    --lefkoe-primary: hsl(220, 25%, 25%);      /* Dark purple-blue */
    --lefkoe-secondary: hsl(25, 85%, 55%);     /* Warm orange/gold */
    --lefkoe-accent: hsl(340, 75%, 55%);       /* Deep pink/red */
    --lefkoe-light: hsl(45, 30%, 95%);         /* Light off-white/beige */
    --lefkoe-gray: hsl(220, 10%, 85%);         /* Light gray */
    --lefkoe-dark: hsl(220, 15%, 20%);         /* Dark gray for text */
    --lefkoe-white: hsl(0, 0%, 100%);          /* Pure white */
    --lefkoe-gradient: linear-gradient(135deg, var(--lefkoe-primary), var(--lefkoe-accent));
    --lefkoe-shadow: 0 4px 20px rgba(220, 25%, 25%, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--lefkoe-white);
    color: var(--lefkoe-dark);
    line-height: 1.6;
}

.container {
    min-height: 100vh;
}

.logo-banner {
    padding: 1.5rem 0;
    background: #717baf;
    text-align: center;
}

.logo-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.logo-image {
    height: 3rem;
    width: auto;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--lefkoe-white);
}

.main-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #faa63b;
    line-height: 1.2;
}

.main-subtitle {
    font-size: 1.25rem;
    color: #faa63b;
    margin-bottom: 2rem;
    font-weight: 500;
}

.main-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.main-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #faa63b;
    line-height: 1.2;
    text-align: center;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.main-subtitle {
    font-size: 1.25rem;
    color: #faa63b;
    margin-bottom: 2rem;
    font-weight: 500;
    text-align: center;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.hero-section {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    max-width: 80rem;
    margin: 3rem auto 2rem auto;
    padding: 0 1.5rem;
}

.hero-photo {
    flex-shrink: 0;
}

.shelly-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #eceef3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-text {
    flex: 1;
}

.content-section {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    margin-top: 0;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.content-text {
    flex: 1;
    background: #eceef3;
    padding: 2rem;
    border-radius: 0;
}

.content-text p {
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    color: var(--lefkoe-dark);
}

.content-text .highlight {
    font-weight: 600;
    color: var(--lefkoe-secondary);
}

.blog-link {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.2s ease;
}

.blog-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

.signup-form-container {
    flex: 0 0 28rem;
    background: var(--lefkoe-white);
    border-radius: 0.5rem;
    padding: 2rem;
    border: 1px solid #e0e0e0;
    box-shadow: none;
    position: sticky;
    top: 2rem;
}

.form-field {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: #000000;
    font-weight: 400;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: normal;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    border: 1px solid #e0e0e0;
    background-color: var(--lefkoe-white);
    font-size: 1rem;
    transition: all 0.2s ease;
    color: #000000;
}

.form-input:focus {
    outline: none;
    border-color: #cccccc;
    box-shadow: none;
    transform: none;
}

.submit-button {
    width: 100%;
    background: #f4a460;
    color: #000000;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.25rem;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
}

.submit-button:hover {
    background: #e9967a;
    transform: none;
    box-shadow: none;
}

.submit-button:active {
    transform: none;
}

/* Responsive Design */
@media (min-width: 768px) {
    .main-heading {
        font-size: 3.5rem;
    }

    .main-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .content-section {
        flex-direction: column;
        gap: 2rem;
    }
    
    .signup-form-container {
        flex: none;
        position: static;
        max-width: 100%;
    }
    
    .content-text {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .logo-banner {
        padding: 1rem 0;
    }
    
    .logo-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo-image {
        height: 2.5rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .hero-section {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .main-heading {
        font-size: 2.25rem;
    }
    
    .shelly-photo {
        width: 150px;
        height: 150px;
    }
    
    .main-content {
        padding: 2rem 1rem;
    }
    
    .signup-form-container {
        padding: 2rem;
    }
    
    /* Make grey background sections full width on mobile */
    div[style*="background: #f8f9fa"] {
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        width: calc(100% + 2rem) !important;
    }
}

/* Signature photo styling for confirmation page */
.signature-photo {
    text-align: left;
    margin-top: 2rem;
}

/* Update content-text margins for confirmation page */
.content-text {
    padding: 2rem 2rem;
}

/* Order Grid Table Styling */
.order-grid-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.order-grid-table {
    min-width: 600px;
}

@media (max-width: 768px) {
    .order-grid-container {
        margin: 0 -1.5rem;
        padding: 0 1.5rem;
        overflow: visible !important;
        background: #fff !important;
        border-radius: 0.5rem !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    }
    
    .order-grid-table {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: table !important;
        table-layout: auto !important;
        border-collapse: collapse !important;
    }
    
    .order-grid-table thead {
        display: table-header-group !important;
    }
    
    .order-grid-table tbody {
        display: table-row-group !important;
    }
    
    .order-grid-table tr {
        display: table-row !important;
        width: 100% !important;
    }
    
    .order-grid-table th,
    .order-grid-table td {
        display: table-cell !important;
        padding: 0.75rem 0.5rem !important;
        font-size: 0.875rem !important;
        vertical-align: middle !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .order-grid-table th {
        font-size: 0.9375rem !important;
        padding: 1rem 0.5rem !important;
    }
    
    .order-grid-table th:first-child,
    .order-grid-table td:first-child {
        width: auto !important;
        min-width: 0 !important;
        max-width: 50% !important;
    }
    
    .order-grid-table th:nth-child(2),
    .order-grid-table td:nth-child(2) {
        width: auto !important;
        min-width: 0 !important;
        text-align: center !important;
    }
    
    .order-grid-table th:nth-child(3),
    .order-grid-table td:nth-child(3) {
        width: auto !important;
        min-width: 0 !important;
        text-align: center !important;
    }
    
    .order-grid-table .buy-now-button {
        width: auto !important;
        max-width: 100% !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem !important;
        box-sizing: border-box !important;
        display: inline-block !important;
        text-align: center !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        background-color: #27ae60 !important;
        color: #fff !important;
        text-decoration: none !important;
        border-radius: 6px !important;
        font-weight: 700 !important;
    }
    
    .order-grid-table td div {
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: var(--lefkoe-dark) !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Hide empty cells */
    .order-grid-table td:empty {
        display: table-cell !important;
    }
}

/* FAQ Accordion Styling */
.faq-item {
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #f8f9fa !important;
}

.faq-answer {
    transition: max-height 0.3s ease-out;
}

.faq-icon {
    user-select: none;
    flex-shrink: 0;
    margin-left: 1rem;
}
