/* --- Base & Fonts --- */
:root {
    /* === 顏色變數 (已更新) === */
    --primary-color: #4A69FF; /* 主題色 - 參考圖片中的亮藍色 */
    --primary-hover-color: #3B58E0; /* 主題色的 Hover 狀態 */
    --rgb-primary-color: 74, 105, 255; /* 主題色 RGB 值 */
    --text-color-on-glass: #333; /* 玻璃卡片上的主要文字 (深色) */
    --text-color-light: #f0f0f0;  /* 淺色文字 (按鈕、Logo、深色背景) */
    --text-color-secondary: #555; /* 深色文字的次要顏色 */

    /* === 玻璃效果變數 (已更新) === */
    --bg-color-alpha: rgba(255, 255, 255, 0.5); /* 玻璃卡片背景 (更亮白) */
    --border-color-alpha: rgba(255, 255, 255, 0.3); /* 玻璃卡片邊框 */
    --blur-intensity: 15px; /* 模糊強度 (可選調整) */
    --shadow-color: rgba(0, 0, 0, 0.1); /* 陰影 (更柔和) */

    /* === 尺寸與邊距變數 (已更新) === */
    --card-border-radius: 20px; /* 卡片圓角 */
    --button-border-radius: 8px; /* 按鈕圓角 */
    --card-padding: 2rem;       /* Desktop Card Padding */
    --section-padding: 4rem 0;  /* Desktop Section Padding */
    --mobile-card-padding: 1.5rem; /* Mobile Card Padding */
    --mobile-section-padding: 3rem 0; /* Mobile Section Padding */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    /* Body 預設文字顏色設為淺色 (適用於深色背景圖) */
    color: var(--text-color-light);
    background: url('../assets/images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    overflow-x: hidden;
    /* Fade-in effect */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
body.loaded {
    opacity: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px; /* Desktop container side padding */
}

h1, h2, h3 {
    font-weight: 700; /* 標題加粗 */
    margin-bottom: 1rem;
    /* 顏色需根據上下文決定，不在這裡設定預設 */
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

p {
    margin-bottom: 1rem;
    /* 段落預設使用玻璃卡片上的深色文字 (除非在特定區塊覆蓋) */
    color: var(--text-color-on-glass);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--primary-hover-color); /* 使用新的 Hover 顏色 */
}

ul { list-style: none; }

/* --- Glassmorphism Card Effect --- */
.glass-card {
    background: var(--bg-color-alpha);
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    border-radius: var(--card-border-radius); /* 使用變數 */
    border: 1px solid var(--border-color-alpha);
    box-shadow: 0 4px 30px var(--shadow-color);
    padding: var(--card-padding);
    margin-bottom: 2rem;
    /* 卡片內文字預設為深色 */
    color: var(--text-color-on-glass);
}

.glass-card strong { /* 卡片內的 strong 標籤 (深色強調) */
    color: #111; /* 更深的灰色或黑色 */
    font-weight: 700;
}

/* Styling for lists within specific cards */
.why-us .glass-card ul,
.solution-card ul { /* 包含 solutions 頁面的列表 */
    list-style: disc;
    margin-top: 1rem;
    margin-bottom: 1rem;
    margin-left: 20px;
    padding-left: 0;
    color: var(--text-color-on-glass); /* 列表文字使用深色 */
}

.why-us .glass-card ul li,
.solution-card ul li {
    margin-bottom: 0.6rem;
}

/* --- Navbar --- */
.navbar { /* Navbar 本身也是玻璃卡片 */
    position: sticky;
    top: 10px;
    left: 5%;
    width: 90%;
    z-index: 1001;
    margin: 10px auto 0 auto;
    padding: 0.8rem var(--card-padding);
    /* Apply glass effect using variables */
    background: var(--bg-color-alpha);
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    border-radius: var(--card-border-radius); /* Navbar 也使用卡片圓角 */
    border: 1px solid var(--border-color-alpha);
    box-shadow: 0 4px 30px var(--shadow-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    /* === 修改這裡 === */
    /* color: var(--text-color-light); */ /* 原本是淺色 */
    color: var(--text-color-on-glass); /* 改為玻璃卡片上的深色文字 */
    flex-shrink: 0;
}

/* Default Desktop Navigation Styles */
#main-nav {
    display: flex;
    align-items: center;
}

#main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
}

#main-nav ul li {
    margin-left: 1.5rem;
}

/* Desktop navigation link styles */
/* Desktop navigation link styles */
#main-nav ul li a {
    /* === 修改這裡 === */
    /* color: var(--text-color-light); */ /* 原本是淺色 */
    color: var(--text-color-on-glass); /* 手機版也應該是這個深色變數 */
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.9rem 1rem;
    display: block;
    width: 100%;
    margin: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-bottom: none;
    background-color: transparent;
}

#main-nav ul li a:hover,
#main-nav ul li a.active {
    color: var(--primary-color); /* 改為主題色，提供對比 */
    border-bottom-color: var(--primary-color); /* 使用新的主題色 */
    background-color: transparent;
}

/* Language button common styles */
.lang-button {
    background-color: var(--primary-color); /* 使用新的主題色 */
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--button-border-radius); /* 使用按鈕圓角 */
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.lang-button:hover {
    background-color: var(--primary-hover-color); /* 使用新的 Hover 顏色 */
}

/* Language button position within desktop nav */
#main-nav .lang-button {
     margin-left: 1.5rem;
}

/* --- Hamburger Menu Styles --- */
.hamburger {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1010;
}

/* --- Hamburger Menu Styles --- */
 /* ... */
 .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    /* === 修改這裡 === */
    background-color: var(--text-color-on-glass); /* 改為玻璃卡片上的深色文字 */
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Hamburger 'X' state styles */
.hamburger.active span {
     /* === 修改這裡 === */
    
    background-color: var(--text-color-on-glass); /* X 狀態也改為深色 */
}
/* ... transform styles ... */

.hero-section h1 {
    color: #fff; /* Hero 大標題保持白色 */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    font-size: 2.8rem; /* Ensure desktop size */
    font-weight: 700; /* Ensure desktop weight */
}

.hero-section .subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: var(--text-color-light); /* 副標題使用淺色 */
}

/* --- General Sections & Content Cards --- */
.section-padding {
    padding: var(--section-padding);
}

.section-title {
    margin-bottom: 3rem;
    /* 標題顏色視背景而定，若在卡片內則為深色，若直接在 body 背景上則為淺色 */
    /* 可以在具體 section 中覆蓋 */
    text-align: center; /* 預設標題置中 */
    color: var(--text-color-light); /* 假設 section 標題不在卡片內 */
}
/* 如果 Section Title 在 glass-card 內部，則需要覆蓋顏色 */
.glass-card .section-title {
     color: var(--text-color-on-glass);
}


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

.content-card {
    /* Inherits .glass-card styles */
}

/* --- Services Grid (Index Page) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-item { /* Inherits .glass-card */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item h3 {
    color: var(--primary-color); /* Service 標題使用主題色 */
    margin-bottom: 0.5rem;
    font-size: 1.4rem; /* Ensure desktop size */
    font-weight: 700; /* Ensure desktop weight */
}
.service-item p {
    color: var(--text-color-on-glass); /* Service 內文使用卡片上的深色 */
    margin-bottom: 1rem;
    min-height: 40px;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15); /* Hover 時陰影可稍明顯 */
}

/* --- Solutions Page Cards (Summary Cards) --- */
.solution-card { /* Inherits .glass-card */
    margin-bottom: 2.5rem;
}

.solution-card h2 {
    color: var(--primary-color); /* Solution 卡片標題使用主題色 */
    border-bottom: 1px solid var(--border-color-alpha);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 2rem; /* Ensure desktop size */
    font-weight: 700; /* Ensure desktop weight */
}

.solution-card strong { /* Labels like "Pain Point:" */
    display: inline-block;
    margin-top: 0.8rem;
    margin-right: 0.5rem;
    color: #111; /* 深色強調 */
    font-weight: 700;
}
.solution-card ul { /* Feature list on summary card */
     /* Styles already defined above */
     color: var(--text-color-on-glass); /* 確保列表文字為深色 */
}

/* --- Contact Form --- */
.contact-form-container { /* Typically within a glass-card */
    max-width: 700px;
    margin: 2rem auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    /* Label 在玻璃卡片上，改為深色 */
    color: var(--text-color-on-glass);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color-alpha);
    border-radius: var(--button-border-radius); /* 輸入框也用按鈕圓角 */
    background-color: rgba(255, 255, 255, 0.2); /* 背景稍微透明 */
    color: #fff; /* 輸入的文字用白色，以便在半透明背景上可見 */
    font-family: inherit;
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #ccc; /* Placeholder 淺灰色 */
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23cccccc' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); /* 下拉箭頭淺灰色 */
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1em;
}

.form-group select option {
    background-color: #334; /* 下拉選單背景深色 */
    color: var(--text-color-light); /* 選項文字淺色 */
}


/* --- Buttons --- */
.cta-button { /* 主按鈕 (Primary) */
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: var(--button-border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem; /* Ensure desktop size */
}

.cta-button:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
}

.secondary-button { /* 次要按鈕 (Secondary) - 新增 */
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.8); /* 淺灰/白色背景 */
    color: var(--text-color-on-glass); /* 深色文字 */
    padding: 0.8rem 1.8rem;
    border-radius: var(--button-border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3); /* 可選細邊框 */
    cursor: pointer;
    margin-left: 1rem; /* 與主按鈕間隔 */
    font-size: 1rem; /* Ensure desktop size */
}

.secondary-button:hover {
    background-color: #fff; /* Hover 時變更實白 */
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 可選細微陰影 */
}


/* --- Footer --- */
.footer {
    background: rgba(0, 0, 0, 0.7); /* Footer 背景可稍深 */
    color: #bbb; /* Footer 文字稍亮 */
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer p { /* Footer 內段落文字顏色 */
    color: #bbb;
    margin-bottom: 0.5rem; /* Footer 內段落間距可小點 */
}

.footer a {
    color: var(--primary-color);
}
.footer a:hover {
    color: var(--primary-hover-color);
}


/* --- Solution Detail Page Styles --- */
.solution-detail-card { /* Inherits .glass-card */
    padding: var(--card-padding);
}

.solution-detail-card h1 {
    color: var(--text-color-on-glass); /* 大標題改為深色 */
    font-size: 2.5rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.solution-detail-card h2 { /* Subtitle */
    color: var(--text-color-secondary); /* 副標題用次要深色 */
    font-size: 1.6rem;
    font-weight: 600; /* 副標題字重可稍輕 */
    text-align: center;
    margin-top: -1rem;
    margin-bottom: 2.5rem;
}

.solution-detail-card h3 { /* Section Titles */
    color: var(--primary-color); /* 小節標題用主題色 */
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color-alpha);
}

.solution-detail-card p {
    color: var(--text-color-on-glass); /* 內文維持深色 */
    line-height: 1.7;
    margin-bottom: 1rem;
}

.solution-detail-card ul {
    color: var(--text-color-on-glass); /* 列表維持深色 */
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    padding-left: 0;
}

.solution-detail-card li {
    margin-bottom: 0.8rem;
}

.solution-detail-card li strong,
.solution-detail-card p strong {
    color: #111; /* 強調文字用更深的顏色 */
    font-weight: 700;
}

.solution-detail-card .cta-button,
.solution-detail-card .secondary-button { /* Detail 頁的按鈕 */
    margin-top: 2rem;
    border-radius: var(--button-border-radius); /* 確保使用新圓角 */
}


/* =============================================== */
/* --- Responsiveness & Mobile Menu --- */
/* =============================================== */
@media (max-width: 768px) {
    /* --- General Mobile Adjustments --- */
    :root {
        /* Use mobile padding variables */
        --card-padding: var(--mobile-card-padding);
        --section-padding: var(--mobile-section-padding);
        /* Mobile 也可以考慮稍微降低模糊度或調整圓角，但目前保持一致 */
        /* --blur-intensity: 10px; */
        /* --card-border-radius: 15px; */
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }

    .container {
        padding: 0 15px; /* Reduce side padding */
    }

    /* --- Mobile Navbar Adjustments --- */
    .navbar {
        padding: 0.6rem 1rem; /* Smaller padding */
        top: 5px;
        margin-top: 5px;
        /* Radius and glass effect inherit from :root update */
    }

    .hamburger {
        display: block; /* Show hamburger */
    }

    /* Mobile Navigation Dropdown Styles */
    #main-nav {
        display: none !important;
        position: absolute;
        top: calc(100% + 5px); /* Position below navbar with a small gap */
        left: 0;
        width: 100%;
        /* Match desktop glass effect */
        background: var(--bg-color-alpha);
        backdrop-filter: blur(var(--blur-intensity));
        -webkit-backdrop-filter: blur(var(--blur-intensity));
        border: 1px solid var(--border-color-alpha);
        border-top: none; /* No top border */
        z-index: 1000;
        padding: 0;
        box-sizing: border-box;
        border-bottom-left-radius: var(--card-border-radius); /* Match card radius */
        border-bottom-right-radius: var(--card-border-radius);
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out, padding 0.4s ease-out, background 0.3s ease, backdrop-filter 0.3s ease;
        flex-direction: column;
        align-items: center;
    }

    #main-nav.nav-open {
        display: flex !important;
        max-height: 80vh;
        padding: 0.5rem 0 1rem 0;
        overflow-y: auto;
    }

    #main-nav ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
        padding: 0;
        margin: 0;
        margin-bottom: 0.5rem;
    }

    #main-nav ul li {
        margin: 0;
        width: 100%;
    }

    #main-nav ul li a {
        --text-color-light: #cccccc;
        font-size: 1.1rem;
        font-weight: 500;
        padding: 0.9rem 1rem;
        display: block;
        width: 100%;
        margin: 0;
        transition: background-color 0.2s ease, color 0.2s ease;
        border-bottom: none; /* No desktop border */
        background-color: transparent;
    }

    #main-nav ul li a:hover,
    #main-nav ul li a.active {
        /* === 修改這裡 === */
        color: var(--primary-color); /* 文字顏色改為主色調 */
        border-bottom-color: var(--primary-color); /* 底部線條維持主色調 */
        background-color: transparent; /* 移除或確保背景透明 */
    }

    /* Mobile menu language button styles */
    #main-nav .lang-button {
        margin: 1rem auto;
        display: block;
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
        border-radius: var(--button-border-radius); /* Use variable */
    }

    /* Hamburger 'X' state styles */
    .hamburger.active span {
        background-color: var(--text-color-on-glass);  /* 改為您要的深色變數 */
    }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* --- Adjust Grid Gap --- */
    .services-grid {
        gap: 1.2rem; /* Adjusted gap */
    }

    /* --- Form Adjustments --- */
    .contact-form-container {
        margin: 1rem auto;
    }
    .form-group {
        margin-bottom: 1rem;
    }
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group select,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.95rem;
        border-radius: var(--button-border-radius); /* Use variable */
    }

    /* --- Button Adjustments --- */
    .cta-button,
    .secondary-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        border-radius: var(--button-border-radius); /* Use variable */
    }
    .secondary-button {
         margin-left: 0; /* Stack buttons on mobile */
         margin-top: 0.8rem; /* Add space when stacked */
         display: block; /* Make secondary button block level on mobile */
         text-align: center;
    }
     .hero-section .cta-button + .secondary-button { /* Keep hero buttons side-by-side if space allows */
        display: inline-block;
        margin-left: 1rem;
        margin-top: 0;
     }


    /* --- Footer Adjustments --- */
    .footer {
        padding: 1rem 0;
        margin-top: 2rem;
    }

} /* End of @media (max-width: 768px) */


/* =============================================== */
/* --- Desktop Styles Reset/Overrides --- */
/* =============================================== */
@media (min-width: 769px) {
    /* Reset padding variables implicitly by base :root taking precedence */

    /* Reset Font sizes to desktop values */
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.4rem; }

    .container {
        padding: 0 20px; /* Restore desktop container padding */
    }

    .navbar {
        padding: 0.8rem var(--card-padding); /* Uses desktop padding */
        top: 10px;
        margin-top: 10px;
    }

    /* Restore Desktop Navigation */
    #main-nav {
        display: flex !important; /* Override mobile display:none */
        position: static;
        height: auto;
        width: auto;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        flex-direction: row;
        align-items: center;
        overflow: visible;
        border: none; /* Remove mobile border */
        border-radius: 0; /* Remove mobile radius */
        box-shadow: none; /* Remove mobile shadow */
        max-height: none;
        transition: none;
    }

    #main-nav ul {
        flex-direction: row;
        text-align: left;
        width: auto;
        margin-bottom: 0;
        padding: 0;
        margin-left: 0;
    }

    #main-nav ul li {
        margin: 0;
        margin-left: 1.5rem; /* Restore desktop spacing */
        width: auto;
    }

    #main-nav ul li a {
        color: var(--text-color-light); /* Restore light text */
        font-size: 1rem;
        font-weight: 600; /* Restore desktop weight */
        padding: 0;
        padding-bottom: 5px;
        border-bottom: 2px solid transparent;
        width: auto;
        margin: 0;
        background-color: transparent;
        display: inline-block;
        transition: border-color 0.3s ease, color 0.3s ease;
    }
    #main-nav ul li a:hover,
    #main-nav ul li a.active {
        /* === 修改這裡 === */
        background-color: rgba(0, 0, 0, 0.05); /* 背景改為非常淡的深色 (可選) */
        /* 或者 background-color: transparent; */
        color: var(--primary-color); /* 文字顏色改為主色調 */
    }

    #main-nav .lang-button {
        margin: 0;
        margin-left: 1.5rem;
        display: inline-block;
        padding: 0.5rem 1rem;
        font-size: 1rem;
        border-radius: var(--button-border-radius);
    }

    .hamburger {
        display: none; /* Hide hamburger */
    }

    /* Restore Grid Gap */
    .services-grid {
        gap: 1.5rem;
    }

    /* Restore Form Input Padding & Font Size */
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 1rem;
        border-radius: var(--button-border-radius);
    }

    /* Restore Button Padding & Font Size */
    .cta-button,
    .secondary-button {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
        border-radius: var(--button-border-radius);
        display: inline-block; /* Ensure inline-block on desktop */
        text-align: initial; /* Reset mobile text-align */
    }
     .secondary-button {
         margin-left: 1rem; /* Restore desktop margin */
         margin-top: 0; /* Reset mobile margin-top */
     }


    /* Restore Footer Padding & Margin */
    .footer {
        padding: 1.5rem 0;
        margin-top: 3rem;
    }

} /* End of @media (min-width: 769px) */


/* --- Style for form status message --- */
.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--button-border-radius); /* Use button radius */
    text-align: center;
    font-weight: bold;
}
.form-status.success {
    background-color: rgba(40, 167, 69, 0.2); /* Greenish background */
    color: #28a745; /* Success green text */
    border: 1px solid rgba(40, 167, 69, 0.4);
}
.form-status.error {
    background-color: rgba(220, 53, 69, 0.15); /* Reddish background */
    color: #dc3545; /* Error red text */
    border: 1px solid rgba(220, 53, 69, 0.3);
}