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

:root {
  --font-size: 16px;
  --hrz-btn-font-size: 13px;
}

@font-face {
  font-family: 'NotoSans';
  src: url('fonts/NotoSansThai-Regular.woff2') format('woff2'), url('fonts/NotoSansThai-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NotoBold';
  src: url('fonts/NotoSansThai-Bold.woff2') format('woff2'), url('fonts/NotoSansThai-Bold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body{
  font-family: 'NotoSans';
  font-size: 16px;
}

a{ text-decoration: inherit; color: inherit;}

.fw-bold{
  font-family: 'NotoBold';
}
.font01{
  font-size: 16px;
}
.color-red{
  color:rgb(255, 14, 14);
}


#footer{
  color: #94a3b8;
  font-size: 13px;
  border-top: 1px solid #e2e8f0;
}
#footer a{
  /* color: #FFFFFF; */
  text-decoration: none;
}
.footer-address{
  padding: 20px 0;
  font-size: 13px;
}
.footer-copyright{
  background: #000;
  text-align: center;
  padding: 10px 0;
  border-top: 1px solid #e2e8f0;
  color: #FFFFFF;
}
.footer-copyright span{
  padding: 0 8px;
}

#footer a:hover{
  color: #E74329;
}
.footer-title{
  font-size: 1.2rem;
}

.footer-icon .bi{
  font-size: 1.6rem;
  margin-right: 15px;
}

.navbar-header{
  border-bottom: 1px solid #e2e8f0;
}
.navbar-head li{
  padding: 0 15px;
}

/*///////////////////////////////////////////////////////////////////////////////////*/
/*///////////////////////////////////////////////////////////////////////////////////*/



.btn-primary-cus {
  background-color: #2563eb;
  color: #fff;
  font-weight: 700;
  padding: .75rem 2rem;
  border-radius: 1rem;
  border: none;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
  transition: all 0.2s;
}
.btn-primary-cus:hover {
  transform: translateY(-2px);
  background-color: #1d4ed8;
}


/* 1. Global Variables สำหรับทั้งหน้า */
:root {
  --app-primary: #2563eb;
  --app-primary-hover: #1d4ed8;
  --app-bg-light: #f6f6f8;
  --app-slate-900: #0f172a;
  --app-slate-500: #64748b;
  --app-slate-400: #94a3b8;
  --app-slate-200: #e2e8f0;
  --app-white: #ffffff;
  --app-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 2. Section: Check Warranty */
.section-checkwarranty {
  background-color: var(--app-bg-light);
  padding-block: clamp(4rem, 10vh, 8rem);
  
  & .search-title {
    font-size: clamp(2rem, 5vw + 1rem, 2.8rem);
    font-family: 'NotoBold', sans-serif;
    color: var(--app-slate-900);
  }

  & .search-sub {
    font-size: 1.1rem;
    color: var(--app-slate-500);
    max-width: 600px;
    margin-inline: auto;
  }

  & .search-container {
    background-color: var(--app-white);
    border-radius: 1rem;
    box-shadow: var(--app-shadow);
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid var(--app-slate-200);
    margin-top: 2rem;
    transition: all 0.3s ease;

    &:focus-within {
      border-color: var(--app-primary);
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    }
  }

  & .input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding-inline: 1rem;
    
    & i { color: var(--app-slate-400); font-size: 1.4rem; margin-right: 15px; }
  }

  & .input-field {
    width: 100%;
    border: none;
    outline: none;
    padding-block: 0.8rem;
    font-size: 1.1rem;
    background: transparent;
    &::placeholder { color: var(--app-slate-400); }
  }

  & .btn-submit {
    background-color: var(--app-primary);
    color: #fff;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    
    &:hover { background-color: var(--app-primary-hover); transform: translateY(-1px); }
    &:active { transform: scale(0.98); }
  }
}

/* 3. Section: How it works (Step Cards) */
.section-warranty {
  padding-block: 5rem;

  & .section-header {
    text-align: center;
    margin-bottom: 4rem;
    & h4 { color: var(--app-slate-400); font-size: 1.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
    & h2 { color: var(--app-slate-900); font-size: 2rem; font-family: 'NotoBold', sans-serif; }
  }

  & .steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  & .step-card {
    background: var(--app-white);
    border: 1px solid var(--app-slate-200);
    border-radius: 1.25rem;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;

    & h3 {font-size: 1.75rem; font-family: 'NotoBold', sans-serif; }
    
    &:hover {
      border-color: var(--app-primary);
      transform: translateY(-5px);
      box-shadow: var(--app-shadow);
    }
  }

  & .icon-box {
    width: 4.5rem; 
    height: 4.5rem;
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--app-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    & i { font-size: 2rem; }
  }

  & .step-card:hover .icon-box {
    background-color: var(--app-primary);
    color: var(--app-white);
  }
}

/* 4. Section: Why Register (Benefits) */
.section-why-register {
  background-color: var(--app-bg-light);
  border-top: 1px solid var(--app-slate-200);

  & .benefit-icon {
    font-size: 1.8rem;
    color: var(--app-primary);
  }
  & .benefit-title { font-family: 'NotoBold', sans-serif; color: var(--app-slate-900); }
  & .benefit-desc { color: var(--app-slate-500); line-height: 1.6; }
}

/* Responsive Grid */
@media (min-width: 640px) {
  .section-checkwarranty .search-container { flex-direction: row; }
}
@media (min-width: 768px) {
  .section-warranty .steps-grid { grid-template-columns: repeat(2, 1fr); }
}


/*///////////////////////////////////////////////////////////////////////////////////*/
/*///////////////////////////////////////////////////////////////////////////////////*/

.section-customer{
  padding-block: clamp(2rem, 10vh, 8rem);
  font-size: 16px;

  /* Container และ Layout ทั่วไป */
  & .registration-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
  }

  /* Card สไตล์ Modern */
  & .custom-card {
    background: var(--app-white);
    border: 1px solid var(--app-slate-200);
    border-radius: 1.25rem;
    box-shadow: var(--app-shadow);
    overflow: hidden;
}

  /* Error / Not Found State */
  & .not-found-state {
    padding: 5rem 2rem;
    text-align: center;
  }
  & .not-found-state i {
    font-size: 4rem;
    color: var(--app-slate-400);
    margin-bottom: 1.5rem;
    display: block;
  }

  /* Header & Table */
  & .invoice-title {
    font-size: 2.5rem;
    font-family: 'NotoBold', sans-serif;
    color: var(--app-slate-900);
  }

  & .table-custom {
    margin-bottom: 0;
  }
  & .table-custom thead {
    background-color: #f8fafc;
  }
  & .table-custom th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--app-slate-500);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--app-slate-200);
  }
  & .table-custom td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
  }

  /* Form Styling */
  & .form-label-bold {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
  }

  & .input-custom {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid var(--app-slate-200);
    background-color: #f8fafc;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
  }

  & .input-custom:focus {
    outline: none;
    border-color: var(--app-primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  }

  & .input-readonly {
    background-color: #f1f5f9;
    cursor: not-allowed;
    color: var(--app-slate-500);
  }

  /* Buttons */
  & .btn-print {
    background-color: var(--app-slate-200);
    border: none;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
  }

  & .btn-register {
    background-color: var(--app-primary);
    color: #fff;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 1rem;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    transition: all 0.2s;
  }
  & .btn-register:hover {
    transform: translateY(-2px);
    background-color: var(--app-primary-hover);
  }

}
/*///////////////////////////////////////////////////////////////////////////////////*/
/*///////////////////////////////////////////////////////////////////////////////////*/

.section-personal{
  padding-block: clamp(2rem, 5vh, 8rem);
  font-size: 16px;


  & label.form-label{
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--app-primary);

  }

  & .btn-register {
    background-color: var(--app-primary);
    color: #fff;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 1rem;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    transition: all 0.2s;
  }
  & .btn-register:hover {
    transform: translateY(-2px);
    background-color: var(--app-primary-hover);
  }

  & .promo-card {
    background: linear-gradient(135deg, #007bff 0%, #60a5fa 100%);
    border: none;
  }

  & .icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 1.8rem;
  }


}


/* Custom Checkbox Button */
.btn-outline-custom {
  border: none;
  background-color: #f1f5f9;
  color: #64748b;
  transition: all 0.2s;
}
.btn-check:checked + .btn-outline-custom {
  background-color: var(--app-primary-hover) !important;
  color: #FFF;
  box-shadow: 0 8px 15px rgba(13, 110, 253, 0.2);
}
.btn-outline-custom:hover {
  background-color: var(--app-primary-hover) !important;
  color: #FFF !important;
}




/*///////////////////////////////////////////////////////////////////////////////////*/
/*-----Forgot Page-----*/
/*///////////////////////////////////////////////////////////////////////////////////*/

.section-forgot{
  background-color: #f8fafc; 

  & .forgot-password-card {
    max-width: 480px;
    width: 100%;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }

  & .input-group-text-custom {
    background-color: transparent;
    border-right: none;
    color: #94a3b8;
  }

  & .form-control-custom {
    border-left: none;
    height: 56px;
    background-color: #f8fafc;
  } 
  & .form-control-custom:focus {
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    border-color:  var(--app-primary-hover);
  }
  & .btn-primary-custom {
    height: 48px;
    font-weight: 700;
    background-color: var(--app-primary);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(13, 110, 253, 0.2);
  }

  & .divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  & .divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
  }
  & .divider:not(:empty)::before { margin-right: 1rem; }
  & .divider:not(:empty)::after { margin-left: 1rem; }

  & .material-symbols-outlined {
    font-size: 1.2rem;
  }

}


        
/*///////////////////////////////////////////////////////////////////////////////////*/
/*-----Section Member-----*/
/*///////////////////////////////////////////////////////////////////////////////////*/
        

.section-member{
  background-color: #f8fafc; 


  & .navbar-custom { 
    background: white; 
    border-bottom: 1px solid #e2e8f0; 
    sticky: top; z-index: 1050; 
  }

	& .search-box { 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
  }

  & .sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid #e2e8f0;
    min-height: calc(100vh - 65px);
  }
  & .nav-link-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
  }
  & .nav-link-custom:hover { background: #f8fafc; color: var(--primary-color); }
  & .nav-link-custom.active {
    background: rgba(19, 91, 236, 0.1);
    color: var(--app-primary);
    font-weight: 600;
    border: 1px solid rgba(19, 91, 236, 0.15);
  }

  /* Stats Cards */
  & .stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  }
  & .icon-box {
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-flex;
  }

  /* Product Card */
  & .product-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
  }
  & .product-card:hover { border-color: var(--primary-color); }
  & .product-img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; }

  /* Badge Custom */
  & .badge-active { background: #d1fae5; color: #059669; font-size: 10px; font-weight: 700; }
  & .badge-expiring { background: #fef3c7; color: #d97706; font-size: 10px; font-weight: 700; }

  & .material-symbols-outlined {
    font-size: 1.5rem;
  }

  @media (max-width: 768px) {
    & .sidebar { width: 100%; min-height: auto; border-right: none; border-bottom: 1px solid #e2e8f0; }
  }



  & .profile-card {
    background: white; border-radius: 16px; border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); overflow: hidden;


    & .form-label { font-size: 0.875rem; font-weight: 600; color: #475569; }
    & .form-control-custom {
        height: 48px; background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
    }
    & .form-control-custom:focus {
        box-shadow: 0 0 0 4px rgba(19, 91, 236, 0.1); border-color: var(--primary-color);
    }






  }



} 

        




/*///////////////////////////////////////////////////////////////////////////////////*/
/*///////////////////////////////////////////////////////////////////////////////////*/