/*--------------------------------------------------------------
# IQ Fence Custom Styles - COMPLETE
--------------------------------------------------------------*/

/*-- 1. Brand Variables & Core Styles --*/
:root {
  --iq-primary-navy: #2A3F4A;  /* Dark Slate Blue */
  --iq-accent-teal: #00809C;   /* Bright Teal */
  --iq-background-light: #f7f7f7;
  --iq-dark-gray: #2A3F4A;
  --bs-font-sans-serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

body {
  color: var(--iq-dark-gray);
  background-color: #fff;
  font-family: var(--bs-font-sans-serif);
}

.bg-light {
  background-color: var(--iq-background-light) !important;
}

/*-- 2. Typography --*/
h1, .h1 {
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: var(--iq-primary-navy);
}

h2, .h2 {
  font-weight: 600;
  font-size: clamp(1.375rem, 4vw, 2rem);
  color: var(--iq-primary-navy);
}

h3, .h3 {
  color: var(--iq-primary-navy);
  font-weight: 600;
}

h4, .h4 {
  color: var(--iq-primary-navy);
  font-weight: 600;
}

.lead {
  font-weight: 400;
  color: #555;
}

.text-primary {
  color: var(--iq-accent-teal) !important;
}

/*-- 3. Buttons & Links --*/
a {
  color: var(--iq-accent-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #006983;
}

.btn-primary {
  background-color: var(--iq-accent-teal);
  border-color: var(--iq-accent-teal);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: #006983; 
  border-color: #006983;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-secondary {
  background-color: var(--iq-primary-navy);
  border-color: var(--iq-primary-navy);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #1e2d35;
  border-color: #1e2d35;
  transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--iq-accent-teal);
    border-color: var(--iq-accent-teal);
}

.btn-outline-primary:hover {
    background-color: var(--iq-accent-teal);
    color: #fff;
    border-color: var(--iq-accent-teal);
}

/*-- 4. Navbar --*/
.navbar {
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.navbar-brand {
  font-weight: 700;
  color: var(--iq-primary-navy) !important;
}

.navbar .nav-link {
  font-weight: 500;
  color: var(--iq-primary-navy);
  margin-left: 1rem;
}

.navbar .nav-link:hover {
    color: var(--iq-accent-teal);
}

.navbar .nav-link.active {
  color: var(--iq-accent-teal) !important;
  font-weight: 700;
}

/*-- 5. Components --*/
.icon-box {
  text-align: center;
  padding: 1.5rem;
  transition: transform 0.3s;
}

.icon-box:hover {
    transform: translateY(-5px);
}

.icon-box .icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(0, 128, 156, 0.1); /* Teal with opacity */
  color: var(--iq-accent-teal);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.card {
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  background-color: #fff;
}

/* Standard hover for generic cards */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Utility to disable hover lift/shadow for specific cards */
.no-hover-animate {
    transition: none !important;
    transform: none !important;
}
.no-hover-animate:hover {
    transform: none !important;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important; /* Keep default bootstrap shadow */
}

/* Feature Item (Accessories) */
.feature-item {
  text-align: center;
  padding: 2rem 1rem;
  background: #fff;
  border-radius: 8px;
  height: 100%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.feature-item .icon {
  font-size: 32px;
  color: var(--iq-accent-teal);
  margin-bottom: 1rem;
  display: inline-block;
}

/*-- 6. Footer --*/
.footer {
  background-color: var(--iq-primary-navy);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer h5 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

.footer .list-unstyled li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.footer .list-unstyled li a:hover {
  color: #fff;
  text-decoration: underline;
}

/*-- 7. Multi-Step Configurator --*/
.progress-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 10px;
}

.progress-container .progress {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    z-index: 1;
    background-color: #e9ecef;
}

.progress-container .progress-bar {
    background-color: var(--iq-accent-teal);
    transition: width 0.4s ease;
}

.step-indicator {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid #e0e0e0;
    color: var(--iq-dark-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    z-index: 2;
    transition: all 0.4s ease;
    font-size: 0.9rem;
}

.step-indicator.active {
    background-color: #fff;
    border-color: var(--iq-accent-teal);
    color: var(--iq-accent-teal);
    transform: scale(1.1);
}

.step-indicator.completed {
    background-color: var(--iq-accent-teal);
    border-color: var(--iq-accent-teal);
    color: #fff;
}

.config-step {
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.choice-card {
    border: 2px solid #eee;
    border-radius: .5rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
}
.choice-card:hover {
    border-color: var(--iq-primary-navy);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.choice-card.selected {
    border-color: var(--iq-accent-teal);
    background-color: #f0f8fa;
    box-shadow: 0 0 0 4px rgba(0, 128, 156, 0.1);
}
.choice-card.card-img img {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    margin-bottom: 1rem;
}

.color-swatch-container {
    text-align: center;
    margin: 0 1rem;
}
.color-swatch {
    width: 100%;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #eee;
    transition: transform 0.2s, border-color 0.2s;
    margin: 0 auto 0.5rem auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.color-swatch:hover {
    transform: scale(1.1);
    border-color: var(--iq-primary-navy);
}
.color-swatch.selected {
    border-color: var(--iq-accent-teal);
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(0, 128, 156, 0.2);
}

/*-- 8. Gallery Styles --*/
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    height: 300px; /* Fixed height for uniformity */
    background-color: #ddd;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 63, 74, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--iq-accent-teal);
}

.square-gallery-item {
    height: 300px;
}

/*-- 9. Gallery Modal Styles --*/
#galleryModal .modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

#galleryModal .modal-body img {
    max-height: 600px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/*-- 10. Product Page Thumbnails & Modal --*/

/* Product Thumbnails in List View */
.model-thumb-container {
    cursor: pointer;
    transition: transform 0.2s ease;
}
.model-thumb-container:hover {
    transform: translateY(-3px);
}
.model-thumb-container img {
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    height: 80px;
    object-fit: cover;
}
.model-name {
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    display: block;
    margin-top: 5px;
    color: var(--iq-primary-navy);
}

/* Rich Product Modal */
.modal-product-title {
    color: var(--iq-primary-navy);
    font-weight: 700;
    border-bottom: 2px solid var(--iq-accent-teal);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.modal-main-img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
}

.modal-thumb-grid {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-thumb-wrapper {
    cursor: pointer;
    text-align: center;
    width: 70px;
}

.modal-thumb-wrapper img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.modal-thumb-wrapper:hover img {
    border-color: var(--iq-accent-teal);
}

.modal-thumb-label {
    font-size: 0.65rem;
    color: var(--iq-primary-navy);
    font-weight: 600;
    margin-top: 3px;
    line-height: 1.1;
}

/* Scrollable specifications container */
.modal-specs-scroll {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 10px;
}
/* Scrollbar styling */
.modal-specs-scroll::-webkit-scrollbar { width: 6px; }
.modal-specs-scroll::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 4px; }
.modal-specs-scroll::-webkit-scrollbar-track { background-color: #f1f1f1; }

.spec-category {
    font-weight: 700;
    color: var(--iq-primary-navy);
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.spec-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.4;
}

.spec-list li::before {
    content: "✓"; 
    color: var(--iq-accent-teal);
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
}

/*-- 10. Complaint Form Specifics --*/
.form-header-icon {
    color: var(--iq-accent-teal);
    margin-right: 0.5rem;
}

.no-hover-card {
    transition: none !important;
    transform: none !important;
}
.no-hover-card:hover {
    transform: none !important;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
}

/*-- 11. Product Modal Styles --*/
.modal-main-img {
    height: 400px;
    object-fit: contain;
    width: 100%;
    margin-bottom: 1.5rem;
        background-color: #ffff;
}

.modal-thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 0.5rem;
}

.modal-thumb-wrapper {
    width: fit-content;
    padding:5px;
    cursor: pointer;
    border-radius: 0;
    overflow: hidden;
    
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    background-color: #ffffff;
    position: relative;
}

.modal-thumb-wrapper:hover {
    transform: scale(1.05);
   /* box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.2);*/
}

.modal-thumb-wrapper img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    display: block;
}

.modal-thumb-placeholder {
    width: 100%;
    height: 120px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2rem;
}

.modal-thumb-label {
    background-color: rgba(255, 255, 255, 0.9);
    color: rgba(42, 63, 74, 0.9);
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}
/*-- Cookie Consent Banner --*/
.cookie-consent {
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--iq-primary-navy) 0%, #1a2d35 100%);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid var(--iq-accent-teal);
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 2.5rem;
    color: var(--iq-accent-teal);
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.cookie-description {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    white-space: nowrap;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.cookie-buttons .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.cookie-buttons .btn-light {
    background-color: var(--iq-accent-teal);
    border-color: var(--iq-accent-teal);
    color: white;
}

.cookie-buttons .btn-light:hover {
    background-color: #006d85;
    border-color: #006d85;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 128, 156, 0.3);
}

/*-- Cookie Settings Modal --*/
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.cookie-settings-modal.show {
    opacity: 1;
}

.cookie-settings-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-settings-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h4 {
    margin: 0;
    color: var(--iq-primary-navy);
    font-size: 1.25rem;
}

.cookie-settings-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-category {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-settings-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.cookie-settings-footer .btn-primary {
    background-color: var(--iq-accent-teal);
    border-color: var(--iq-accent-teal);
}

.cookie-settings-footer .btn-primary:hover {
    background-color: #006d85;
    border-color: #006d85;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-icon {
        font-size: 2rem;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-buttons .btn {
        width: 100%;
    }

    .cookie-settings-footer {
        flex-direction: column;
    }

    .cookie-settings-footer .btn {
        width: 100%;
    }
}