/* ==========================================================================
   IMPORTS
   ========================================================================== */

@import url('css/satoshi.css');

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

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

body {
    font-family: 'Satoshi-Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    line-height: 18px;
    background: url(../images/kc-tile-640.png) top left fixed;
    background-size: 40%;
    min-height: 100vh;
    color: #333;
}

.hidden {
    display: none;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1 {
    font-family: 'Satoshi-Bold', sans-serif;
    line-height: 1;
    margin: 0;
    text-align: left;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.main-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 100;
    padding: 15px 20px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    height: 40px;
    width: auto;
}

.header-title {
    font-family: 'Satoshi-Bold', sans-serif;
    font-size: 1.25rem;
    color: #333;
    margin: 0;
}

.header-hamburger {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: opacity 0.2s;
}

.header-hamburger:hover {
    opacity: 0.7;
}

.hamburger-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.header-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.header-menu.expanded {
    max-height: 500px;
    padding: 10px 20px 20px 20px;
    transition: max-height 0.3s ease-in;
}

.header-menu a {
    color: #0066cc;
    text-decoration: none;
}

.header-menu a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .main-header {
        display: block;
    }

    body {
        padding-top: 70px;
    }
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
    max-width: 800px;
    margin: 0 auto;
    margin-left: calc(50% - 400px + 150px);
    padding: 20px;
    position: relative;
    transition: margin-left 0.3s ease;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    padding: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar.collapsed {
    transform: translateX(-280px);
}

.sidebar.collapsed ~ .container {
    margin-left: auto;
}

.sidebar a,
.sidebar a:visited {
    color: #537D6F;
    text-decoration: none;
}

.sidebar a:hover {
    color: #659786;
    text-decoration: underline;
}

.sidebar.collapsed .qr-code-container {
    opacity: 0;
    visibility: hidden;
}

.sidebar-toggle {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    color: #666;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus {
    background: rgba(255, 255, 255, 0.5);
    color: #333;
    outline: none;
}

.sidebar-toggle:active {
    transform: scale(0.95);
}

.sidebar.collapsed .sidebar-toggle {
    transform: translateX(280px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

/* ==========================================================================
   PAGES
   ========================================================================== */

.page {
    display: none;
    min-height: 80vh;
    padding: 40px 20px;
    text-align: center;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    position: relative;
}

.page.active {
    display: block;
}

/* ==========================================================================
   HEADER & BRANDING
   ========================================================================== */

.header {
    margin-bottom: 60px;
}

.logo {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 20px auto 30px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(68, 160, 141, 0.3);
}

.tagline {
    font-size: 18px;
    color: #666;
    margin-top: 20px;
}

/* ==========================================================================
   JULIA AVATAR & SPEECH BUBBLE
   ========================================================================== */

.julia-container {
    position: absolute;
    bottom: 116px;
    left: -20px;
    width: auto;
    height: 40vh;
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.julia-container img {
    height: 100%;
    width: auto;
    flex-shrink: 0;
}

.speech-bubble {
    background: white;
    padding: 25px;
    border-radius: 25px;
    max-width: 500px;
    text-align: left;
    position: relative;
    border: 3px solid #333;
    box-shadow: none;
    overflow: visible;
}

.speech-bubble h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: bold;
}

.speech-bubble p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.julia-container .speech-bubble {
    padding: 15px;
    max-width: 150px;
    min-width: 100px;
    position: absolute;
    border: 1px solid #CCC;
    top: 10px;
    right: -110px;
    font-size: 12px;
}

.julia-container .speech-bubble h2 {
    font-size: 14px;
    margin-bottom: 8px;
}

.julia-container .speech-bubble p {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 6px;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
    margin: 30px 0;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 15px;
    font-family: 'Satoshi-Medium', sans-serif;
    font-size: 14px;
    color: #333;
}

.required {
    color: #ff6b6b;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    font-size: 16px;
    font-family: 'Satoshi-Regular', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: normal;
    margin-bottom: 0;
}

.radio-group label:hover,
.checkbox-group label:hover {
    background: #e8f5f3;
    border-color: #4ecdc4;
}

.radio-group input,
.checkbox-group input {
    width: 20px !important;
    height: 20px !important;
    margin-right: 15px;
    accent-color: #4ecdc4;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-next,
.btn-submit,
.btn-previous {
    padding: 15px 40px;
    border: none;
    border-radius: 60px;
    box-shadow: 0 2px 14px rgba(73, 73, 73, 0.3);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-next,
.btn-submit {
    background: #537D6F;
    border-radius: 80px;
    color: white;
    position: absolute;
    bottom: 10px;
    right: 10px;
    margin-top: 0;
}

.btn-next:hover,
.btn-submit:hover {
    background: #659887;
}

.btn-previous {
    background: transparent;
    border: 2px solid #537D6F;
    color: #537D6F;
    position: absolute;
    bottom: 10px;
    left: 10px;
    margin-top: 0;
}

.btn-previous:hover {
    background: #D7FFF2;
    border-color: #659887;
    color: #659887;
}

.btn-submit {
    margin-top: 30px;
}

/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */

.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.8);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    width: 0%;
    transition: width 0.5s ease;
}

/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */

.product-info {
    text-align: left;
    padding: 20px;
}

.product-info .logo {
    text-align: center;
    margin-bottom: 30px;
}

.product-info h3 {
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: center;
}

.benefits ul,
.features-list ul,
.rewards-list ul {
    list-style: none;
    margin: 20px 0;
}

.benefits li,
.features-list li,
.rewards-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    line-height: 1.5;
}

.benefits li:last-child,
.features-list li:last-child,
.rewards-list li:last-child {
    border-bottom: none;
}

.commitment-info {
    text-align: left;
    background: #E8EFED;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    font-size: 14px;
}

.commitment-info h3 {
    color: #333;
    margin-bottom: 20px;
}

.commitment-info ul {
    list-style: disc;
    margin: 15px 0 15px 20px;
}

.commitment-info li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* ==========================================================================
   BUDGETING PAGE & SAVINGS CALCULATOR
   ========================================================================== */

.budgeting-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin: 30px 0;
}

.budgeting-left,
.budgeting-right {
    flex: 1;
    min-width: 0;
}

#annual-savings-question {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    transform: translateY(-10px);
}

#annual-savings-question.show {
    opacity: 1;
    max-height: 400px;
    transform: translateY(0);
    margin-top: 20px;
}

.budgeting-right .savings-calculator {
    max-width: none;
    margin: 0;
}

.savings-calculator {
    background: #88c9b3;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin: 20px auto;
    max-width: 500px;
}

.calculator-header {
    text-align: center;
    margin-bottom: 24px;
}

.calculator-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #537d6f;
    margin-bottom: 8px;
}

.calculator-header p {
    color: #d7fff2;
    font-size: 16px;
}

.calculator-metrics {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    padding: 16px;
    flex: 1;
    text-align: center;
}

.metric-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 24px;
    font-weight: bold;
    color: black;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 12px;
    color: #9b9b9e;
}

.annual-savings-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    padding: 16px;
    margin-bottom: 24px;
}

.annual-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.dollar-icon {
    font-size: 48px;
}

.annual-details {
    text-align: center;
}

.annual-value {
    font-size: 36px;
    font-weight: bold;
    color: black;
    line-height: 1;
}

.annual-label {
    font-size: 12px;
    color: #9b9b9e;
    margin-top: 4px;
}

.roi-text {
    text-align: left;
    flex: 1;
}

.roi-main {
    font-size: 14px;
    font-weight: bold;
    color: #231f20;
    margin-bottom: 4px;
}

.roi-sub {
    font-size: 12px;
    color: #231f20;
}

.slider-section {
    width: 100%;
}

.slider-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: #231f20;
    margin-bottom: 12px;
}

.budget-value {
    font-weight: bold;
}

.slider-container {
    position: relative;
}

.grocery-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.grocery-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #537d6f;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.grocery-slider::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #537d6f;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #231f20;
    margin-top: 8px;
}

/* ==========================================================================
   SOCIAL LINKS
   ========================================================================== */

.social-links {
    margin-top: 40px;
    text-align: center;
}

.social-links p {
    margin-bottom: 20px;
    font-weight: 600;
}

.links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.links a {
    color: #537D6F;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.3s;
    font-weight: 600;
}

.links a:hover {
    background: #dddddd;
    color: #537D6F;
}

/* ==========================================================================
   MESSAGES & NOTIFICATIONS
   ========================================================================== */

.message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
    z-index: 2000;
    min-width: 300px;
}

.message.show {
    display: block;
}

#loading-message {
    background: #4ecdc4;
    color: white;
}

#success-message {
    background: #2ecc71;
    color: white;
}

#error-message {
    background: #e74c3c;
    color: white;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

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

/* ==========================================================================
   FOOTER & MISC
   ========================================================================== */

.legal {
    font-size: 10px;
    color: #828282;
    text-align: left;
    margin-top: 12px;
    line-height: 1.5;
    position: absolute;
    bottom: 24px;
    width: 88%;
}

.qr-code-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1002;
}

.qr-code {
    width: 80px;
    height: 80px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.qr-code:hover {
    opacity: 1;
}

.copyright-footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 100;
    position: absolute;
    bottom: 10px;
    right: 10px;
    border-radius: 8px;
}

.copyright-footer p {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
    white-space: nowrap;
}

/* ==========================================================================
   MEDIA QUERIES - TABLET (1024px and below)
   ========================================================================== */

@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .container {
        margin-left: 250px;
        padding: 40px 30px;
    }
    
    .page {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease-in-out;
    }
    
    .container {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar.collapsed {
        transform: none;
        left: -100%;
    }
    
    .sidebar-toggle {
        display: none;
    }
}

/* ==========================================================================
   MEDIA QUERIES - MOBILE (768px and below)
   ========================================================================== */

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    /* Layout */
    .container {
        margin-left: 0;
        padding: 80px 20px 30px;
        width: 100%;
    }
    
    .page {
        padding: 20px 15px;
        max-width: 100%;
    }
    
    /* Sidebar */
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0 15px rgba(0,0,0,0.2);
        overflow-y: auto;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    /* Hide desktop sidebar toggle */
    .sidebar-toggle {
        display: none;
    }
    
    /* Mobile Header */
    .mobile-header {
        display: flex;
    }
    
    /* Adjust container for fixed mobile header */
    .container {
        margin-left: 0;
        padding: 80px 20px 30px;
        width: 100%;
    }
    
    /* Sidebar overlay behavior */
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0 15px rgba(0,0,0,0.2);
        overflow-y: auto;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    /* Add overlay backdrop when sidebar is open */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
    }
    
    body.sidebar-open::after {
        opacity: 1;
        visibility: visible;
    }
    
    /* Julia Container */
    .julia-container {
        flex-direction: column;
        align-items: center;
        height: 35vh;
        gap: 10px;
        padding: 15px;
    }
    
    .julia-container .speech-bubble {
        max-width: 140px;
        font-size: 11px;
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .speech-bubble {
        text-align: center;
    }
    
    .speech-bubble::before,
    .speech-bubble::after {
        display: none;
    }
    
    /* Budgeting Layout */
    .budgeting-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .budgeting-left,
    .budgeting-right {
        width: 100%;
        padding: 20px;
    }
    
    .budgeting-right .savings-calculator {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .calculator-metrics {
        flex-direction: column;
    }
    
    .annual-content {
        flex-direction: column;
        text-align: center;
    }
    
    .roi-text {
        text-align: center;
        margin-top: 16px;
    }
    
    .annual-value {
        font-size: 32px;
    }
    
    /* Forms */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        font-size: 16px;
        padding: 14px;
    }
    
    textarea {
        min-height: 120px;
    }
    
    .radio-group,
    .checkbox-group {
        gap: 12px;
    }
    
    .radio-group label,
    .checkbox-group label {
        padding: 16px;
        font-size: 15px;
        min-height: 48px;
    }
    
    input[type="radio"],
    input[type="checkbox"] {
        width: 22px;
        height: 22px;
        margin-right: 12px;
    }
    
    /* Buttons */
    .btn-next,
    .btn-previous,
    .btn-submit {
        width: 45%;
        margin: 10px 0;
        padding: 16px 32px;
        font-size: 16px;
        border-radius: 40px;
        min-height: 52px;
    }
    
    /* Misc */
    .links {
        flex-direction: column;
        align-items: center;
    }

    .social-links p {
        font-size: 16px;
        line-height: 8;
    }
    
    .copyright-footer {
        position: relative;
        margin-top: 20px;
        text-align: center;
        width: 100%;
    }
    
    .copyright-footer p {
        white-space: normal;
        font-size: 0.7rem;
    }

    #page-5 {
        width: 100vw !important;
        margin: 0 !important;
    }
}

/* ==========================================================================
   MEDIA QUERIES - SMALL MOBILE (480px and below)
   ========================================================================== */

@media (max-width: 480px) {
    .container {
        padding: 4vh 5vw;
    }
    
    .page {
        padding: 15px 10px;
    }
    
    .sidebar {
        width: 250px;
        padding: 10px;
    }
    
    .sidebar.collapsed {
        transform: translateX(-230px);
    }
    
    .sidebar.collapsed .sidebar-toggle {
        transform: translateX(230px);
    }
    
    .logo-container img {
        width: 85%;
    }
    
    .julia-container {
        height: 30vh;
        gap: 8px;
        padding: 12px;
    }
    
    .julia-container .speech-bubble {
        max-width: 120px;
        font-size: 10px;
        padding: 10px;
    }
    
    .btn-next,
    .btn-previous,
    .btn-submit {
        padding: 14px 24px;
        font-size: 15px;
        width: 35vw;
    }

    .start-survey {
        position: relative;
        width: 80vw;
        left: .5vw;
    }

    #page-5 {
        width: 100vw !important;
        margin: 0 !important;
    }
}

/* ==========================================================================
   MEDIA QUERIES - EXTRA SMALL (360px and below)
   ========================================================================== */

@media (max-width: 360px) {
    .sidebar {
        width: 90%;
    }
    
    .sidebar-toggle {
        padding: 10px 12px;
        font-size: 18px;
    }
    
    .container {
        padding: 65px 10px 20px;
    }
    
    .btn-next,
    .btn-previous {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ==========================================================================
   MEDIA QUERIES - LANDSCAPE
   ========================================================================== */

@media (max-height: 500px) and (orientation: landscape) {
    .sidebar {
        height: 100vh;
        overflow-y: auto;
    }
    
    .container {
        padding-top: 60px;
    }
    
    .page {
        padding: 15px;
    }
}

/* ==========================================================================
   MOBILE - 480px AND BELOW
   ========================================================================== */

@media (max-width: 480px) {
    .budgeting-layout {
        flex-direction: column-reverse;
    }
}

/* ==========================================================================
   IOS SAFARI FIXES
   ========================================================================== */

@supports (-webkit-touch-callout: none) {
    .container {
        padding-bottom: env(safe-area-inset-bottom, 30px);
    }
    
    .button-group {
        padding-bottom: env(safe-area-inset-bottom, 10px);
    }
}

/* Add spacing between label and buttons on commitment pages */
#page-6 .form-group > label,
#page-8 .form-group > label {
    margin-bottom: 30px;
    display: block;
}

@media (max-width: 768px) {
    #page-6 .form-group > label,
    #page-8 .form-group > label {
        margin-bottom: 50px;
    }
}

@media (max-width: 480px) {
    #page-6 .form-group > label,
    #page-8 .form-group > label {
        margin-bottom: 70px;
    }
}