  :root {
    --yellow: #f9c80e;
    --dark: #1a1a1a;
    --gray: #f5f5f5;
  }
  * { margin:0; padding:0; box-sizing:border-box; }
  body:not(.translate) {
    background: url(../img/bg2.png);
    background-size: contain;
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
  }
  img {
    max-width: 100%;
  }
  .social-phones {
    border-bottom: 1px solid #8080805c;
    margin-bottom: 18px;
  }
  .social-phones img {
    max-width: 50px;
    margin: 10px;
  }

.final-cta {
    background:#1a1a1a; 
    color:white; 
    padding: 60px 20px 0 20px;
    text-align:center;
}
.sv-modal-content {
    height: 92%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.call-link {
  position: fixed;
  max-width: 70px;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}
.call-link.whatsapp {
    right: 100px;
}
.call-link.fb {
    right: 190px;
}
.call-link img {
    width: 60px;
}
#admin-list {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 9999;
    display: block;
}

#admin-list li {
    display: block;
    margin-bottom: 10px;
}

#admin-list li a {
    display: block;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

#admin-list li a:hover {
    transform: translateX(-5px);
}

@media ( max-width: 768px ) {
    #admin-list {
        position: relative;
        top: 0;
        background: transparent;
        transform: none;
        height: auto;
        left: 0px;
        right: 0px;
        width: 100%;
    }

    #admin-list li {
        padding: 0 15px;
    }
    
    #admin-list li a {
        padding: 5px;
        margin: 10px 0;
    }
    img {
        max-width: 100%;
    }
}

.edit-translate i {
  display: none;
}

.edit-translate:hover i {
  display: inline-block;
  cursor: pointer;
}

.hiddenInputs,
#inquiryModal {
  display: none;
  position: relative;
}
body.translate .hiddenInputs {
    display: block;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    max-height: 100% !important;
    max-width: 100% !important;
    z-index: 99 !important;
}
body.translate .hiddenInputs .close-modal {
    display: none;
}
/* Превръща таблицата в модален прозорец */
.hiddenInputs,
.upload-overlay,
#inquiryModal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 800px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    z-index: 10000 !important;
    background: white !important;
    border-collapse: collapse !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
    border-radius: 12px !important;
    padding: 15px !important;
}
#inquiryModal {
    height: 700px;
}
.upload-overlay {
    display: none;
}
.hiddenInputs .close-modal,
.upload-overlay .close-modal:not(button),
#inquiryModal .close-modal {
    display: block;
    text-align: right;
    font-size: 20px;
    color: var(--red-primary);
    padding: 5px;
    cursor: pointer;
}
.hiddenInputs h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}
.hiddenInputs table {
    width: 100%;
}
.hiddenInputs td,
.hiddenInputs td textarea {
    display: block;
    width: 100% !important;
}
/* Стил за textarea полетата */
.hiddenInputs textarea {
    width: 100% !important;
    min-height: 60px !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    padding: 8px !important;
    font-family: inherit !important;
    font-size: 14px !important;
}

/* Стил за бутона */
.hiddenInputs .btn-primary,
.upload-overlay .btn-primary {
    background-color: #c2410c !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    color: white !important;
    cursor: pointer !important;
}

  .hero {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('../img/bg.png') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 520px 20px 80px;
  }
  .hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
  }
  .hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px;
  }
  .btn-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }
  .btn-group a img {
    max-width: 80px;
    margin-right: 20px;
  }
  .btn {
    background: var(--yellow);
    color: var(--dark);
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    text-decoration: none;
  }
  .btn:hover {
    background: #f5b500;
    transform: translateY(-3px);
  }

  .section {
        background: #ffffffd4;
    padding: 20px 20px;
    margin: 40px auto;
  }
  .section-title {
    text-align: center;
    margin-bottom: 50px;
  }
  .brand-header {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 15px;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: bold;
  }
  .maq-track b,
  .maq-engine b,
  .maq-attach b {
    background: #f9c80d;
    color: #000;
    padding: 8px 10px;
    margin-right: 5px;
  }
  .maq-track, .maq-engine, .maq-attach { background: #000; color: white; padding: 1px 20px 1px 0; border-radius: 2px; }

  .products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 25px;
    margin: 0 auto;
  }
  .product-card {
    text-align: center;
    background: white;
    padding: 20px 10px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
  }
  .product-card:hover {
    transform: translateY(-8px);
  }
  .product-card img {
    width: 100%;
    max-height: 140px;
    object-fit: contain;
    margin-bottom: 15px;
  }
  .product-card h4 {
    font-size: 0.95rem;
    font-weight: 900;
  }

  .brands {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
  }
  .brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
  }
  .brand-logo img {
    height: 60px;
    transition: 0.3s;
  }
  .brand-logo:hover img {
    transform: scale(1.1);
  }

  .cta-button {
    display: block;
    width: fit-content;
    margin: 40px auto 10px auto;
    background: var(--yellow);
    color: #000;
    padding: 16px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(249, 200, 14, 0.3);
  }

  .trust {
    background: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
  }
  .trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto 0;
  }

  footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 20px;
  }

  @media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    .btn-group { flex-direction: column; align-items: center; }
    .products-grid {
      grid-template-columns: 1fr 1fr;
    }
    .brand-header {
      display: block;
    }
    .brand-header h2 {
      margin-top: 10px;
      text-align: center;
    }
    .hero {
      padding: 60px 10px;
    }
    .section {
      padding: 20px 10px;
    }
  }
  .center {
    text-align: center;
  }
  .center a {
    color: #000;
    text-decoration: none;
  }

  /* ============================================
   СТИЛОВЕ ЗА ФАЙЛОВЕТЕ
   ============================================ */
/* ============================================
   ФОРМА ЗА ЗАПИТВАНЕ
   ============================================ */

/* Контейнер на формата */
#inquiryForm {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Групи от полета */
#inquiryForm .form-group {
    margin-bottom: 20px;
}

/* Етикети */
#inquiryForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

#inquiryForm .required {
    color: #c2410c;
    margin-left: 3px;
}

/* Полета за въвеждане */
#inquiryForm input[type="text"],
#inquiryForm input[type="email"],
#inquiryForm input[type="tel"],
#inquiryForm textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

#inquiryForm input:focus,
#inquiryForm textarea:focus {
    outline: none;
    border-color: #c2410c;
    box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.1);
}

/* Текстова област */
#inquiryForm textarea {
    resize: vertical;
    min-height: 100px;
}

/* Поле за качване на файлове */
#inquiryForm input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px dashed #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

#inquiryForm input[type="file"]:hover {
    border-color: #c2410c;
    background: #fff3ed;
}

/* Малък текст под полетата */
#inquiryForm .form-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    display: block;
}

/* ============================================
   ПРЕДВАРИТЕЛЕН ПРЕГЛЕД НА СНИМКИТЕ
   ============================================ */

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.file-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview .file-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 9px;
    padding: 2px 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-preview .remove-file {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #c2410c;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.file-preview .remove-file:hover {
    background: #a33407;
    transform: scale(1.1);
}

/* ============================================
   БУТОНИ
   ============================================ */

#inquiryForm .btn-primary,
#inquiryForm .btn-outline {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

#inquiryForm .btn-primary {
    background: #c2410c;
    color: #fff;
    margin-right: 10px;
}

#inquiryForm .btn-primary:hover {
    background: #a33407;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(194, 65, 12, 0.3);
}

#inquiryForm .btn-outline {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

#inquiryForm .btn-outline:hover {
    background: #f5f5f5;
    border-color: #c2410c;
    color: #c2410c;
}

/* ============================================
   СТАТУС СЪОБЩЕНИЯ
   ============================================ */

#form-status {
    margin-top: 20px;
    padding: 12px 15px;
    border-radius: 8px;
    display: none;
    font-size: 14px;
}

#form-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   МОБИЛНА ВЕРСИЯ
   ============================================ */

@media (max-width: 768px) {
    #inquiryForm .form-group {
        margin-bottom: 15px;
    }
    
    #inquiryForm input[type="text"],
    #inquiryForm input[type="email"],
    #inquiryForm input[type="tel"],
    #inquiryForm textarea {
        padding: 10px 12px;
    }
    
    #inquiryForm .btn-primary,
    #inquiryForm .btn-outline {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .file-list {
        gap: 8px;
    }
    
    .file-preview {
        width: 70px;
        height: 70px;
    }
    .btn-group a {
        display: block;
        width: 100%;
    }
}
