:root {
    --acme-blue: #233e83;
    --acme-yellow: #ffcc00;
    --submenu-bg: #e6f2ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body { 
    font-family: Arial, "Microsoft JhengHei", sans-serif; 
    background-color: #f5f5f5; 
}

/*.navbar-container-design {
    width: 100%;
    background: white; 
    border-bottom: 2px solid var(--acme-blue); 
    position: relative;
    z-index: 1000;
}*/

.navbar-container {
    width: 100%;
    background: white;
    border-bottom: 2px solid var(--acme-blue);
    position: relative;
    z-index: 1000;
}

.navbar-content {
    width: 100%;             
    max-width: none;         
    margin: 0;               
    display: flex;
    align-items: center;
    padding: 10px 40px;      
}

.img-wrapper {
    display: flex;
    align-items: center;
    margin-left: 0px; 
}

.img-wrapper img {
    height: 45px; 
    width: auto;
    margin-right: 12px;
    flex-shrink: 0;
}

.logo { 
    font-weight: bold; 
    color: var(--acme-blue); 
    line-height: 1.2; 
    font-size: 16px; 
    white-space: nowrap;
    flex-shrink: 0;      
}

.main-menu {
    margin-left: 25px; 
}

.main-menu ul {
    display: flex;
    list-style: none;
}

.header-menu {
    margin-left: auto; 
    /*display: flex;*/
    gap: 10px;
    white-space: nowrap;
}

.menu-item {
    position: relative;
    padding: 10px 14px;       
    overflow: hidden;         
    cursor: pointer;
}

.menu-item::before {
    content: '';
    position: absolute;
    bottom: 7px;            
    left: -150%;              
    width: calc(100% - 24px); 
    height: 30%;             
    background-color: var(--acme-yellow);
    z-index: 1;              
    transform: skewX(-25deg); 
    transition: left 0.4s ease-out; 
}

.menu-item:hover::before,
.menu-item.active::before {  
  left: 12px;
}

.menu-item > a {
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    text-decoration: none;
    position: relative;
    z-index: 2;              
    transition: color 0.3s ease;
    white-space: nowrap;
}

.menu-item:hover > a,
.menu-item.active > a {      
  color: var(--acme-blue);
}

.header-btn {
    text-decoration: none;
    color: #444444;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.header-btn:hover {
    color: var(--acme-blue);
    background-color: #f5f7fa;
}

.header-btn.contact-highlight {
    border: 1px solid var(--acme-blue);
    color: var(--acme-blue);
}

.header-btn.contact-highlight:hover {
    background-color: var(--acme-blue);
    color: #ffffff;
}

.submenu-container {
  position: absolute;       
  top: 100%;               
  left: 0;
  width: 100%;
  background-color: var(--submenu-bg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); 
  z-index: 999;             
  display: none;
  margin-top: -2px; 
  border-top: 2px solid var(--acme-blue); 
}

.submenu-container.active {
  display: block;
}

.submenu-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    text-align: center;
}

.submenu-group {
    display: none;
}

.submenu-group.active {
    display: block;
}

.submenu-group a {
    font-size: 15px;
    color: #555555;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 0 10px;
}

.submenu-group a:hover {
    color: var(--acme-blue);
}

.submenu-group .divider {
    color: #999999;
    margin: 0 5px;
}

.main-content {
    margin-top: 60px;
}

.Directions {
    margin-left: 20px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none; 
    transition: opacity 0.3s ease;
    z-index: 9999; 
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    padding: 30px 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}
.modal-close:hover { color: #333; }

.modal-content h3 {
    color: var(--acme-blue);
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
.modal-subtitle { 
    color: #666; 
    font-size: 14px; 
    margin-bottom: 20px; 
    margin-top: 20px;
}
.contact-info-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}
.contact-item { 
    font-size: 15px; 
    color: #333; 
}

.guide-content { 
    padding: 20px; 
    background: #f8f9fa; 
    border-radius: 6px; 
}
.guide-content ul { 
    padding-left: 20px; 
    line-height: 1.8; 
}

.video-container {
  max-width: 800px;  
  margin: 20px auto; 
  width: 100%;
}

.video-container video {
  width: 100%;
  height: auto;
  object-fit: contain;    
  border-radius: 8px;       
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
}

.form-section {
    display: none;
    width: 100%;
}

.form-section.active {
    display: block; 
}

/* 調整 iframe 樣式 */
iframe[name="calculation-frame"] {
    width: 100%;
    height: 80vh; /* 根據畫面比例調整高度 */
    border: none;
    background: #ffffff;
}
