/* Combined CSS File - Merged pm_styles.css and pm_newmodalstyles.css */

/* Base Styles */
:root {
    --primary: #ff6b35;
    --secondary: #0077b3;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --gradient: linear-gradient(135deg, #ff6b35 0%, #0077b3 100%);
}

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

body {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
    padding-top: 80px; /* Account for fixed navbar */
}

html, body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    background-color: rgba(0, 95, 140, 0.05);
}

/* Typography */
.buyer-quote {
  margin-top: auto;
  padding: 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  font-style: italic;
}

.buyer-quote small {
  display: block;
  text-align: right;
  font-style: normal;
  opacity: 0.8;
}
.numbered-list {
  list-style-type: none;
  counter-reset: step-counter;
  padding-left: 1.5rem;
}

.numbered-list li {
  counter-increment: step-counter;
  position: relative;
  margin-bottom: 1rem;
}

.numbered-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: -2.5rem;
  top: 0;
  background: rgba(255,255,255,0.2);
  color: white;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.pricing-info {
  background: rgba(255,255,255,0.1);
  padding: 1rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.pricing-info p {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hero-content h3 {
    padding-bottom: 1rem;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

.hero-headline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.9;
    line-height: 1.6;
}

.equipment-brand {
    font-size: .9rem;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 75;
    color: var(--light);
    margin-bottom: 0.1rem;
}

.equipment-model {
    font-size: .9rem;
    color: var(--cyan);
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 75;
}

/* Layout Components */
.hero {
    background: linear-gradient(135deg, #005f8c 0%, #003d5c 100%);
    color: white;
    padding: 3rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    will-change: transform, height;
}

.hero.minimized {
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    border: none;
    transition: all 0.3s ease;
}

.hero.minimized .hero-content,
.hero.minimized .hero-cards {
    display: none !important;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>');
    background-size: 100px 100px;
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 2rem;
    text-align: left;
    transition: all 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.15);
}

.hero-card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.hero-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.hero-card li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.hero-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00d4aa;
    font-weight: bold;
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, #e55a2b 100%) !important;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
      display: inline-block;
  text-align: center;
}

.hero-cta:hover {
    background: linear-gradient(135deg, #e55a2b 0%, var(--primary) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: white;
}
/* Add this to center the CTAs and add spacing */
.cta-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* For the buyers card specifically to add space above the button */
.buyers-card .cta-container {
  margin-top: 20px;
}
/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nav-links a:hover {
    color: white;
    background: linear-gradient(135deg, var(--secondary) 0%, #005f8c 100%);
    border: 1px solid var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 119, 179, 0.3);
}


.navbar-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: #005f8c;
    margin: 5px 0;
    transition: 0.4s;
}

/* Filters */
.filters {
    border: 1px solid rgba(0, 95, 140, 0.15);
    background: white;
    position: sticky;
    top: 80px;
    z-index: 100;
    padding: 1rem 2rem;
    margin: 0 auto 2rem;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.filters.sticky {
    padding: 0.75rem 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.filter-group label {
    font-weight: 400;
    color: var(--gray);
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-select option.all-option {
    color: orangered !important;
    font-weight: 400 !important;
}

.filter-select:invalid,
.filter-select option.all-option:checked {
    color: orangered !important;
    font-weight: 400 !important;
}

.filter-select option:not(.all-option) {
    color: black;
    font-weight: 400;
}

.search-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 300px;
}

.search-container {
    position: relative;
}

.search-box {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.search-box:focus {
    border-color: var(--primary);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Equipment Grid */
.equipment-grid {
    width: 90%;
    max-width: 2400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 260px));
    justify-content: center;
    gap: 30px;
    padding-bottom: 80px;
}

.equipment-card {
    width: 260px;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-header {
    background: black;
    color: white;
    padding: 4px;
    text-align: center;
    position: relative;
    width: 100%;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.card-body {
    padding: 0rem;
    position: relative;
    height: 100%;
}

.equipment-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0px;
    margin-bottom: 0rem;
    transition: opacity .35s ease;
}

.equipment-price {
    padding: 0px 0px 0px 0px;
    margin:0;
    width: 100%;
    background-color: hsl(0,0%,95%);
    color: hsl(0,0%,5%);
    font-size: 1.2rem;
    font-weight: 400;
}

.equipment-location {
    color: grey;
    padding: 0px;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 400;
    margin-bottom: 0rem;
}

.equipment-status {
    background: #fef3c7;
    color: #92400e;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 1rem;
    display: inline-block;
}

.eoi-badge {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 400;
    display: inline-block;
    margin-bottom: 1rem;
}

.contact-btn {
    width: 100%;
    padding: 0.3rem;
    background: rgba(0, 95, 140, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    line-height: 1.2;
}

.contact-btn:hover {
    background: rgba(0, 95, 140, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.photo-icons-container {
    position: absolute;
    width: 100%;
    top: 40px;
    left: 0;
    z-index: 2;
}

.photo-icons {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    opacity: 0;
    transition: opacity .35s ease;
    padding-bottom: 25px;
}

.special-offer {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    color: #fff;
    background: rgba(226, 8, 8, 0.75);
    backdrop-filter: blur(2px);
    line-height: 1.2;
    font-family: "Roboto", sans-serif;
    font-size: .7rem;
    padding: 6px 0;
    transform: translateY(10px);
    opacity: 0;
    transition: all .35s ease;
    pointer-events: none;
    margin-top: 5px;
}

.equipment-card:hover .photo-icons {
    opacity: 1;
}

.equipment-card:hover .special-offer {
    opacity: 1;
    transform: translateY(0);
}

.equipment-card:hover img:not(.photo-icons img) {
    opacity: 0.3;
}

.photo-icons img {
    max-width: 40px;
    max-height: 40px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.photo-icons img:hover {
    transform: scale(1.1);
}

.photo-icons img:active {
    transform: scale(0.95);
}

.motm-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #28a745;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 1;
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.1);
}

.alert-danger h4 {
    color: #721c24;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.alert-danger ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.alert-danger li {
    margin-bottom: 5px;
}

/* Add these styles to your existing CSS */
.invalid-feedback {
    color: #dc3545 !important; /* Bright red */
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
    font-weight: bold;
}

.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
}

.error-container {
    background-color: #fff8f8;
    border: 2px solid #ffcccc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.1);
    animation: shake 0.5s ease-in-out;
}

.error-heading {
    color: #d32f2f;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.error-list {
    margin: 0;
    padding-left: 20px;
    color: #d32f2f;
}

.error-list li {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* For the registration modal specifically */
#sellerRegistrationModal .error-container {
    margin: 0 0 20px 0;
    border-left: 4px solid #d32f2f;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-message {
    text-align: center;
    padding: 4rem;
    color: #ef4444;
}

.no-results {
    text-align: center;
    padding: 4rem;
    color: #64748b;
}

/* Add this to your pm_allstyles.css file */
#sellerRegistrationModal .modal-content {
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Enables smooth scrolling on iOS */
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
}

/* Ensure the modal body can scroll */
#sellerRegistrationModal .modal-body {
    max-height: calc(80vh - 120px); /* Account for header/footer */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 15px;
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease-out;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.submit-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="tel"],
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Add this to your CSS */
.modal .form-group.full-width {
  grid-column: 1 / -1;
}

.modal .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  font-size: inherit;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: red;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    line-height: 1.4;
    color: #ec0808;
}

/* Photo Modal Styles */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.photo-modal-content {
    position: relative;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.photo-modal-header {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.photo-modal-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    text-align: center;
}

.photo-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.photo-close:hover {
    opacity: 0.7;
}

.carousel-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding: 20px;
    min-height: 400px;
}

.carousel-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.carousel-image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    margin: 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 1001;
    border-radius: 5px;
}

.carousel-nav:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.9);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-counter {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    text-align: center;
    margin-bottom: 15px;
}

.carousel-thumbnails {
    display: flex;
    gap: 6px;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.carousel-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.carousel-thumbnail.active {
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
}

.carousel-thumbnail:hover {
    border-color: #2980b9;
    transform: scale(1.05);
}

.carousel-loading,
.carousel-no-images,
.carousel-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
    height: 100%;
}

.carousel-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

/* Video Modal Styles */
.video-modal {
    z-index: 2000;
}

.video-modal-content {
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.video-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 400;
    color: #333;
}

.video-close {
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.video-close:hover {
    color: #333;
}

.video-content {
    padding: 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.youtube-video {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.video-loading {
    text-align: center;
    color: #666;
}

.video-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.video-error {
    text-align: center;
    color: #666;
    padding: 40px 20px;
}

.video-error h3 {
    color: #dc3545;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.video-error p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.error-details {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

/* Seller Dashboard Styles */
#sellerDashboardModal .modal-content {
    max-width: 800px;
    width: 95%;
}

#sellerDashboardModal .machine-item .btn-edit,
#sellerDashboardModal .machine-item button.btn-edit {
    background-color: #007bff !important;
    color: white !important;
}

#sellerDashboardModal .machine-item .btn-edit:hover,
#sellerDashboardModal .machine-item button.btn-edit:hover {
    background-color: #0056b3 !important;
}

#sellerDashboardModal .machine-item .btn-photos,
#sellerDashboardModal .machine-item button.btn-photos {
    background-color: #4da6ff !important;
    color: white !important;
}

#sellerDashboardModal .machine-item .btn-photos:hover,
#sellerDashboardModal .machine-item button.btn-photos:hover {
    background-color: #3d8bdb !important;
}

#sellerDashboardModal .machine-item .btn-delete,
#sellerDashboardModal .machine-item button.btn-delete {
    background-color: #dc3545 !important;
    color: white !important;
}

#sellerDashboardModal .machine-item .btn-delete:hover,
#sellerDashboardModal .machine-item button.btn-delete:hover {
    background-color: #c82333 !important;
}

#sellerDashboardModal input[type="text"],
#sellerDashboardModal input[type="number"],
#sellerDashboardModal textarea,
#sellerDashboardModal select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

#sellerDashboardModal textarea {
    min-height: 80px;
    resize: vertical;
}

.dashboard-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.machines-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.machine-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 15px !important;
    margin-bottom: 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.machine-name {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #333 !important;
    margin: 0 !important;
    flex-grow: 1 !important;
}

.button-group {
    display: flex !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.machine-item .btn {
    padding: 6px 12px !important;
    font-size: 13px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    border: none !important;
    transition: background-color 0.2s !important;
    white-space: nowrap !important;
}

.no-machines {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

/* Photo Upload Modal */
#photoUploadModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 2000;
}

/* ===== Photo Upload Modal Enhancements ===== */
#photoUploadModal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

#photoUploadForm {
    padding: 20px;
}

#progressBar {
    width: 100%;
    height: 20px;
    margin-top: 10px;
}

#uploadResult {
    margin-top: 15px;
}

.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.drop-zone.highlight {
    border-color: #005f8c;
    background-color: rgba(0, 95, 140, 0.1);
}

.browse-btn {
    background-color: #005f8c;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

#fileList {
    max-height: 150px;
    overflow-y: auto;
    margin-top: 10px;
}
.drop-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.drop-area.highlight {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.drop-instructions {
    margin-bottom: 15px;
}



#dropZone {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#dropZoneContent {
    transition: all 0.3s ease;
}

#filePreview {
    transition: all 0.3s ease;
}

.file-preview {
    display: flex;
    align-items: center;
    padding: 8px;
    margin-bottom: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
    transition: background-color 0.2s;
  }
  
  .file-preview:hover {
    background-color: #eee;
  }
  
  .file-preview img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
  }
  
  .file-info {
    flex-grow: 1;
    overflow: hidden;
  }
  
  .file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    color: #333;
  }
  
  .file-size {
    font-size: 0.8rem;
    color: #777;
  }
  
  .remove-file {
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    font-size: 1.2rem;
  }
  
  #dropZone.drag-over {
    border-color: #4a89dc;
    background-color: #f0f7ff;
  }

.remove-file:hover {
    color: #ff0000;
}

#uploadProgress {
    margin-top: 15px;
}

#progressBar {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: #f0f0f0;
}

#progressBar::-webkit-progress-bar {
    background: #f0f0f0;
    border-radius: 5px;
}

#progressBar::-webkit-progress-value {
    background: #005f8c;
    border-radius: 5px;
    transition: width 0.3s ease;
}

#uploadSpeed {
    font-size: 12px;
    color: #666;
    text-align: right;
    margin-top: 5px;
}

/* Make sure the modal is on top of everything */
#photoUploadModal {
    z-index: 2000 !important;
}

/* Ensure the modal doesn't close when clicking inside */
#photoUploadModal .modal-content {
    pointer-events: auto;
}

/* Make the drop zone more visible when active */
.drop-zone.highlight {
    border-color: #005f8c !important;
    background-color: rgba(0, 95, 140, 0.1) !important;
}



/* Seller Registration Form */
#sellerRegistrationModal .form-control {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

#sellerRegistrationModal .form-control:focus {
    border-color: #005f8c;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 95, 140, 0.2);
}

#sellerRegistrationModal input[readonly] {
    background-color: #f8f9fa;
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

#sellerRegistrationModal input[type="password"] {
    letter-spacing: 1px;
}

/* Machine Details */
.machine-details {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.machine-details h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.machine-description {
    line-height: 1.6;
    color: #333;
}

.seller-contact {
    padding-top: 20px;
}

.seller-contact h3 {
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.seller-detail {
    margin-bottom: 12px;
    line-height: 1.6;
}

.seller-detail strong {
    color: #333;
    display: inline-block;
    min-width: 80px;
}

.no-seller-info {
    text-align: center;
    padding: 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

/* Contact Form */
.contact-form-container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-container h2 {
    color: var(--primary, #2c3e50);
    margin-bottom: 0.5rem;
    text-align: center;
}

.equipment-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: var(--primary, #2c3e50);
    text-align: center;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: #005f8c;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 95, 140, 0.2);
}

.phone-input {
    min-width: 100%;
}

.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    min-height: 120px;
    resize: vertical;
    transition: border-color 0.3s;
}

.form-textarea:focus {
    border-color: #005f8c;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 95, 140, 0.2);
}

/* Gradient Button */
.gradient-btn {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gradient-btn:hover {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.gradient-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes subtle-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3); }
    50% { box-shadow: 0 2px 15px rgba(255, 107, 53, 0.5); }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive Styles */
@media (max-width: 1080px) {
    .navbar-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 1rem;
        padding-bottom: 2rem;
    }
    
    .nav-links li:not(:last-child) {
        margin-bottom: 0.75rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        margin: 0;
    }
    
    .nav-links a {
        width: 90%;
        margin: 0 auto;
        text-align: center;
        border-radius: 4px;
        padding: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .nav-container {
        padding-bottom: 0;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 60px;
    }
    
    .logo {
        display: block;
        font-size: 1.5rem;
        margin-left: 1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 5rem 1.5rem 3rem;
    }
    
    .hero-headline {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cards {
        grid-template-columns: 1fr;
    }
    
    .filters {
        top: 60px !important;
        padding-top: 10px;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-group, .search-group {
        min-width: auto;
        width: 100%;
    }
    
    .filter-select, .search-box {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }
    
    .hero:not(.minimized) {
        min-height: 300px;
    }
    
    .equipment-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 260px));
        width: 95%;
        max-width: 540px;
    }
    
    .photo-modal-content {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .carousel-container {
        padding: 15px;
        min-height: 300px;
    }
    
    .carousel-image {
        max-height: 50vh;
    }
    
    .carousel-nav {
        font-size: 18px;
        padding: 8px 12px;
    }
    
    .carousel-prev {
        left: 8px;
    }
    
    .carousel-next {
        right: 8px;
    }
    
    .carousel-thumbnails {
        gap: 4px;
        padding: 0;
    }
    
    .carousel-thumbnail {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 15px;
    }
    
    .modal-body {
        max-height: 500px;
        overflow-y: auto;
    }
    
    .close {
        right: 15px;
        top: 10px;
    }
    
    .machine-item {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    
    .button-group {
        justify-content: center !important;
    }
    
    .btn {
        flex: 1 !important;
        min-width: 70px !important;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .video-modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .video-modal-header {
        padding: 15px;
    }
    
    .video-modal-title {
        font-size: 1.3rem;
    }
    
    .video-content {
        padding: 15px;
        min-height: 300px;
    }
    
    .video-container {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 600px) {
    #sellerRegistrationModal .form-control {
        padding: 10px;
        font-size: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 560px) {
    .equipment-grid {
        max-width: 260px;
    }
}

@media (max-width: 480px) {
    .video-modal-content {
        width: 98%;
        margin: 10px auto;
    }
    
    .video-content {
        min-height: 250px;
    }
}