/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
    position: relative;
}

body {
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: white;
    /*overflow-x: hidden;*/
    /*overflow-y: auto;*/
    position: relative;
    /* Constrain body to viewport to prevent scroll from decorative elements */
    min-height: 100vh;
}

/* ===== HEADER STYLES ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 1) 75%, 
        rgba(255, 255, 255, 0) 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: none;
    flex-wrap: wrap;
}

.logo {
    order: 1;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    font-family: 'REM', sans-serif;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

/* Welcome text as direct child of header - positioned on desktop */
.header > .welcome-text {
    display: inline-block;
    order: 2;
    margin-left: auto;
    margin-right: 1rem;
}

.header-links {
    order: 3;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-link {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    padding: 0.56rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.header-link:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.header-link.primary {
    background: #2563eb;
    color: white;
}

.header-link.primary:hover {
    background: #1d4ed8;
}

/* User info for dashboard */
.user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.welcome-text {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.welcome-text a {
    transition: all 0.3s ease;
}

.welcome-text a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.logout-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.56rem 1.5rem;
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.logout-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.user-info-bar {
    position: fixed;
    top: 0;
    right: 0;
    padding: 1rem 2rem;
    z-index: 1001;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.form-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #333;
    background: white;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Instrument Sans', sans-serif;
    background: #F5F5F5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* ===== BUTTON STYLES ===== */
.btn {
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: #333;
    color: white;
}

.btn-primary:hover {
    background: #555;
}

.btn-blue {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
}

.btn-blue:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.register-btn, .password-btn {
    width: 100%;
    background: #333;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.register-btn:hover, .password-btn:hover {
    background: #555;
    transform: translateY(-2px);
}

.login-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.login-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* ===== SECTION STYLES ===== */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 4rem;
    padding-top: 6rem;
    position: relative;
}

.container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    font-family: 'Instrument Sans', sans-serif;
}

/* ===== MESSAGE STYLES ===== */
.flash-message, .error-message {
    color: #dc2626;
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fef2f2;
    border-radius: 12px;
    border: 1px solid #fecaca;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.95rem;
}

.error-message {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.success-message {
    background: #efe;
    color: #363;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    border: 1px solid #cfc;
}

/* ===== LOGIN STYLES ===== */
.login-section {
    background: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 4rem;
    padding-top: 6rem;
    position: relative;
}

.login-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
}

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

.login-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: #64748b;
}

/* ===== REGISTER STYLES ===== */
.register-section {
    background: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 4rem;
    padding-top: 6rem;
    position: relative;
}

.register-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
}

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

.register-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.register-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: #64748b;
}

.register-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.register-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.login-link {
    text-align: center;
    margin-top: 2rem;
    font-family: 'Instrument Sans', sans-serif;
    color: #64748b;
    font-size: 0.95rem;
}

.login-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #1d4ed8;
}

/* ===== DASHBOARD STYLES ===== */
.dashboard-section {
    padding: 2rem 4rem;
    padding-top: 8rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.dashboard-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: #666;
}

.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.card-description {
    font-family: 'Instrument Sans', sans-serif;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.buttons-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default: single column on mobile */
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1003;
    width: 100%;
    align-items: stretch; /* Ensures all items have same height */
}

/* Tablet and larger screens - 2 columns */
@media (min-width: 600px) {
    .buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop screens - 3 columns */
@media (min-width: 900px) {
    .buttons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large desktop screens - can show 3 or 4 columns depending on width */
@media (min-width: 1200px) {
    .buttons-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
    }
}

/* Ensure all buttons inside grid remain above overlay when dragging */
body.dragging-active .dashboard-section {
    z-index: 1001 !important;
}

body.dragging-active .dashboard-card {
    z-index: 1002 !important;
}

body.dragging-active .buttons-grid {
    z-index: 1003 !important;
}

body.dragging-active .button-wrapper {
    z-index: 1004 !important;
    position: relative;
}

body.dragging-active .execute-btn,
body.dragging-active .configure-btn {
    z-index: 1005 !important;
    position: relative;
}

body.dragging-active .arrow-wrapper {
    z-index: 1006 !important;
    position: relative;
}

body.dragging-active .arrow-btn {
    z-index: 1007 !important;
    position: relative;
}

.button-wrapper {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 10;
    width: 100%; /* Constrain to grid cell width */
    max-width: 100%; /* Prevent overflow */
    min-width: 0; /* Allow shrinking if needed */
}

.execute-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    flex: 4;
    min-width: 0; /* Allow flex item to shrink */
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.execute-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.execute-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.arrow-wrapper {
    background: #10b981;
    background-color: #10b981;
    border-radius: 0;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    flex: 1;
    width: 20%;
    display: none;
    overflow: hidden;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    z-index: 11;
    pointer-events: auto;
}

.arrow-wrapper:hover {
    background: #059669;
    background-color: #059669;
}

.arrow-btn {
    background: transparent;
    background-color: transparent;
    color: black;
    border: none;
    padding: 1rem;
    width: 100%;
    height: 100%;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 12;
    pointer-events: auto;
}

.arrow-wrapper:hover .arrow-btn {
    transform: translateY(-2px);
}

/* Drag and drop styles */
.button-wrapper.dragging {
    opacity: 0.5;
    cursor: grabbing !important;
    z-index: 1000;
    transform: scale(1.05);
}

.button-wrapper.dragging .arrow-wrapper,
.button-wrapper.dragging .arrow-btn {
    cursor: grabbing !important;
}

.button-wrapper.drag-over {
    border: 2px dashed #2563eb;
    border-radius: 12px;
    box-sizing: border-box;
}

.button-wrapper.drag-ready {
    cursor: grab;
}

/* When body has dragging state, all arrow elements should use grabbing cursor */
body.dragging-active .arrow-wrapper,
body.dragging-active .arrow-btn {
    cursor: grabbing !important;
}

/* Drag mode overlay - dims the screen */
.drag-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    pointer-events: none;
}

.drag-overlay.active {
    display: block;
    z-index: 1000;
}

/* Second overlay specifically for dashboard-card */
.drag-overlay-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    pointer-events: none;
    border-radius: 20px;
    box-sizing: border-box;
}

.drag-overlay-card.active {
    display: block;
}

/* Lower header z-index when dragging is active so it gets dimmed */
body.dragging-active .header {
    z-index: 1 !important;
}

/* Configure button styles - green for unconfigured services */
.configure-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    flex: 1;
    width: 100%;
    display: inline-block;
}

.configure-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* When configure-btn is in a button-wrapper, adjust styling */
.button-wrapper .configure-btn {
    border-radius: 12px;
    width: 100%;
    flex: 1;
}

/* Unsupported service button styling */
.execute-btn.unsupported-service {
    background: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.execute-btn.unsupported-service:hover {
    background: #9ca3af !important;
    transform: none !important;
}

/* Tooltip styles */
.service-tooltip {
    position: fixed;
    background: #1f2937;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
    max-width: 300px;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    animation: tooltipFadeIn 0.2s ease-out;
    text-align: center;
}

.service-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2937;
}

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

/* Modal Styles */
.modal {
    display: none !important;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: block !important;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.modal-header h2 {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #111827;
}

.close {
    color: #6b7280;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.close:hover {
    color: #374151;
}

.modal-body {
    padding: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.cancel-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.configure-submit-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.configure-submit-btn:hover {
    background: #059669;
}

.configure-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Notification animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.output {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-family: 'Instrument Sans', sans-serif;
    white-space: pre-wrap;
    display: none;
}

/* ===== HOMEPAGE SPECIFIC STYLES ===== */
.main-section {
    padding: 8rem 4rem 130px;
    padding-left: 4rem;
    text-align: center;
    background: white;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.choice-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.choice-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}

.choice-subtitle {
    font-size: 1.5rem;
    color: #64748b;
    margin-bottom: 4rem;
    font-weight: 400;
    font-family: 'Instrument Sans', sans-serif;
}

.choice-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

.choice-btn {
    flex: 1;
    max-width: 300px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.choice-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #2563eb;
}

.individuals-btn:hover {
    border-color: #10b981;
}

.businesses-btn:hover {
    border-color: #2563eb;
}

.choice-btn-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.choice-btn-content p {
    font-size: 1.1rem;
    color: #64748b;
    font-family: 'Instrument Sans', sans-serif;
    line-height: 1.5;
}

.tagline {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 2;
}

.sub-tagline {
    font-size: 1.5rem;
    color: #64748b;
    margin-bottom: 3rem;
    font-weight: 400;
    font-family: 'Instrument Sans', sans-serif;
    position: relative;
    z-index: 2;
}

.email-form {
    position: relative;
    max-width: 500px;
    margin: 0 auto 1rem;
    z-index: 2;
}

.email-input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 180px;
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    background: #f5f5f5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.email-input:focus {
    border: 2px solid #2563eb;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.submit-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #60a5fa 0%, #14b8a6 100%);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 21px;
    cursor: pointer;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

/* Removed all hover effects for submit-btn - button will not change on hover */

.arrow-circle {
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke-width: 2px;
}

.form-note {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 400;
    font-family: 'Instrument Sans', sans-serif;
}

/* Description Section */
.description-section {
    padding: 4rem 4rem 90px;
    padding-left: 4rem;
    background: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.card {
    text-align: left;
    padding: 0 2rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid #2563eb;
    /*border: 2px solid black;*/
    transition: background 0.3s ease, border 0.3s ease;
}

.card:hover {
    background: white;
    /*border: 2px solid #2563eb;*/
    /*border: 2px solid black;*/
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0.5rem 0 0.5rem 0;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card:nth-child(1) .card-icon {
    background: #4A9DFF;
}

.card:nth-child(2) .card-icon {
    background: #FF7C7C;
}

.card:nth-child(3) .card-icon {
    background: #48D867;
}

.card-icon svg#check-icon {
    width: 40px;
    height: 40px;
    fill: white;
}

.card-icon svg#key-icon {
    width: 45px;
    height: 45px;
    fill: white;
}

.card-icon svg#smiley-icon {
    width: 100px;
    height: 100px;
    fill: white;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.card-text {
    color: #64748b;
    line-height: 1.4;
    font-weight: 400;
    font-family: 'Instrument Sans', sans-serif;
    text-align: left;
}

/* Details Section */
.details-section {
    padding: 4rem 0 90px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100vh;
}

.details-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90vw;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.left-column h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.left-column h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.left-column p {
    color: #64748b;
    line-height: 1.4;
    font-weight: 400;
    font-family: 'Instrument Sans', sans-serif;
}

.right-column h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.right-column p {
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 2rem;
    font-weight: 400;
    font-family: 'Instrument Sans', sans-serif;
}

/* Split Rectangle - Border on top of content */
.split-rectangle {
    position: relative;
}

.split-rectangle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid #0066cc;
    border-radius: 8px;
    pointer-events: none;
    z-index: 10;
}

/* Next Steps Section */
.next-steps-section {
    padding: 4rem 0 90px;
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.next-steps-container {
    position: relative;
    z-index: 2;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0 0;
    background: white;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.contact-section::before {
    content: '';
    position: absolute;
    left: 85%;
    bottom: 30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at 0% 100%, #4A9DFF 0%, rgba(74, 157, 255, 0.8) 30%, rgba(74, 157, 255, 0.4) 60%, transparent 100%);
    border-radius: 50%;
    opacity: 0.3;
    z-index: 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 35% 55%;
    gap: 3rem;
    width: 90vw;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.contact-info p {
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    font-weight: 400;
    font-family: 'Instrument Sans', sans-serif;
}

.contact-form h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.contact-form-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
}

.contact-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.875rem;
    font-family: 'Instrument Sans', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-input:focus {
    border-color: #2563eb;
}

.contact-message {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.875rem;
    font-family: 'Instrument Sans', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
    min-height: 80px;
    resize: vertical;
}

.contact-message:focus {
    border-color: #2563eb;
}

.contact-submit-btn {
    background: black;
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
    width: auto;
    align-self: flex-end;
}

.contact-submit-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.small-arrow {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* ===== DECORATIVE ELEMENTS ===== */
.color-splotch-red {
    position: absolute;
    left: -150px;
    top: 25vh;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 0% 0%, #FF7C7C 50%, transparent 65%);
    border-radius: 50%;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

/* Container for blue splotch to clip overflow */
.color-splotch-blue-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    contain: layout style paint size;
    isolation: isolate;
}

.color-splotch-blue {
    position: absolute;
    right: -100px;
    bottom: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at 100% 100%, #4A9DFF 0%, rgba(74, 157, 255, 0.8) 30%, rgba(74, 157, 255, 0.4) 60%, transparent 100%);
    border-radius: 50%;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
    transform: translateY(200px);
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Accent Colors */
.accent-blue {
    color: #2563eb;
}

.accent-red {
    color: #dc2626;
}


/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .tagline {
        font-size: 2.5rem;
    }

    .details-section,
    .contact-section {
        min-height: auto;
        padding: 3rem 0;
    }

    .details-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 95vw;
        padding: 0 1rem;
        margin: 0 auto;
    }

    .email-form {
        flex-direction: column;
    }

    .contact-form-container {
        flex-direction: column;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .header {
        padding: 1rem;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    
    .header-links {
        gap: 0.5rem;
        flex-wrap: wrap;
        flex: 1;
        justify-content: flex-end;
        min-width: 0;
    }
    
    /* Show welcome text as direct child of header on mobile, centered below logo and logout */
    .header > .welcome-text {
        display: block;
        width: 100%;
        order: 3;
        margin-top: 0.5rem;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .header-link {
        padding: 0.38rem 1rem;
        font-size: 0.9rem;
    }
    
    .user-info {
        gap: 1rem;
    }
    
    .welcome-text {
        font-size: 0.9rem;
    }
    
    .logout-btn {
        padding: 0.38rem 1rem;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 1rem 2rem;
        padding-top: 5rem;
    }
    
    .container {
        padding: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .dashboard-section {
        padding: 1rem;
        padding-top: 6rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
    
    .dashboard-title {
        font-size: 1.75rem;
    }
    
    .main-section {
        padding: 6rem 2rem 3rem;
    }
    
    .choice-title {
        font-size: 2.5rem;
    }
    
    .choice-subtitle {
        font-size: 1.2rem;
    }
    
    .choice-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .choice-btn {
        max-width: none;
    }
    
    .sub-tagline {
        font-size: 1.2rem;
    }
    
    .description-section {
        padding: 2rem;
    }
    
    .details-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .details-container,
    .contact-container {
        width: 98vw;
        padding: 0 0.5rem;
        margin: 0 auto;
    }
    
    .header {
        padding: 1rem;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    
    .header-links {
        gap: 0.5rem;
        flex-wrap: wrap;
        flex: 1;
        justify-content: flex-end;
        min-width: 0;
    }
    
    /* Show welcome text as direct child of header on mobile, centered below logo and logout */
    .header > .welcome-text {
        display: block;
        width: 100%;
        order: 3;
        margin-top: 0.5rem;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .section {
        padding: 1rem;
        padding-top: 5rem;
    }
    
    .container {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .main-section {
        padding: 5rem 1rem 2rem;
    }
    
    .choice-title {
        font-size: 2rem;
    }
    
    .choice-subtitle {
        font-size: 1rem;
    }
    
    .tagline {
        font-size: 2rem;
    }
    
    .sub-tagline {
        font-size: 1rem;
    }
    
    .description-section,
    .details-section,
    .contact-section {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* ===== LARGE MONITOR RESPONSIVE DESIGN ===== */
@media (min-height: 1600px), (min-width: 2800px) {
    .main-section {
        padding: 12rem 6rem 6rem;
    }
    
    .tagline {
        font-size: 5rem;
        margin-bottom: 2rem;
    }
    
    .sub-tagline {
        font-size: 2rem;
        margin-bottom: 4rem;
    }
    
    .email-form {
        max-width: 600px;
    }
    
    .email-input {
        padding: 1.5rem 2rem;
        font-size: 1.2rem;
        padding-right: 220px;
    }
    
    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .description-section {
        padding: 6rem 6rem;
    }
    
    .section-title {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1.5rem;
    }
    
    .cards-container {
        gap: 3rem;
        max-width: 1400px;
    }
    
    .card {
        padding: 3rem;
    }
    
    .card-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .card-text {
        font-size: 1.2rem;
        line-height: 1.6;
    }
    
    .card-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }
    
    .details-section {
        padding: 6rem 0;
    }
    
    .details-container {
        max-width: 1400px;
    }
    
    .split-rectangle {
        height: 500px;
        max-width: 1000px;
    }
    
    .contact-section {
        padding: 6rem 0;
    }
    
    .contact-container {
        max-width: 1400px;
        gap: 4rem;
    }
    
    .contact-info h2 {
        font-size: 2.5rem;
    }
    
    .contact-info h3 {
        font-size: 2rem;
    }
    
    .contact-info p {
        font-size: 1.2rem;
    }
    
    .contact-form h4 {
        font-size: 1.25rem;
    }
    
    .contact-input,
    .contact-message {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .next-steps-section {
        padding: 6rem 0;
    }
    
    .next-steps-container {
        max-width: 1000px;
    }
    
    .next-steps-section h2 {
        font-size: 3rem;
        margin-bottom: 4rem;
    }
    
    #scroll-down-btn {
        width: 140px;
        height: 140px;
    }
} 
