/* styles/style.css - EchoSphere Assignment 3 */

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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ========== Header ========== */
header {
  background: linear-gradient(135deg, #1a2a6c, #2b5876);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-right: 10px;
  color: #4fc3f7;
}

.logo span {
  font-size: 1rem;
  opacity: 0.9;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  padding: 8px 12px;
  border-radius: 4px;
}

nav ul li a:hover {
  color: #00a8ff;
  background-color: rgba(255, 255, 255, 0.1);
}
/* Header navigation responsive fixes */
.header-content {
    flex-wrap: wrap;
    gap: 10px;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

nav li {
    margin: 2px 5px;
}

nav a {
    padding: 8px 12px;
    font-size: 0.9em;
    white-space: nowrap;
}

/* For desktop devices (1025px and up) */
@media (min-width: 1025px) {
    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    nav ul {
        justify-content: flex-end;
    }
}

/* For mobile devices (767px and below) */
@media (max-width: 767px) {
    .header-content {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        justify-content: flex-start;
    }
    
    nav ul {
        justify-content: flex-start;
        gap: 5px;
    }
    
    nav a {
        padding: 6px 8px;
        font-size: 0.85em;
    }
}

/* For very small mobile devices */
@media (max-width: 480px) {
    nav ul {
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    nav li {
        margin: 2px 5px;
    }
}

/* ========== Hero Slider ========== */
.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #01000d;
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Slide backgrounds */
/* Hero images: Unsplash (unsplash.com/license) — free for commercial use, no attribution required */
.slide-1 {
  background-image:
    linear-gradient(rgba(10, 14, 23, 0.7), rgba(10, 14, 23, 0.7)),
    url('../images/hero-slide-1-immersive-sound.jpg');
}

.slide-2 {
  background-image:
    linear-gradient(rgba(10, 14, 23, 0.7), rgba(10, 14, 23, 0.7)),
    url('../images/hero-slide-2-audio-technology.jpg');
}

.slide-3 {
  background-image:
    linear-gradient(rgba(10, 14, 23, 0.7), rgba(10, 14, 23, 0.7)),
    url('../images/hero-slide-3-crystal-visuals.jpg');
}

.slide-4 {
  background-image:
    linear-gradient(rgba(10, 14, 23, 0.7), rgba(10, 14, 23, 0.7)),
    url('../images/hero-slide-4-premium-sound.jpg');
}

.slide-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  color: white;
  z-index: 2;
}

.slide-content h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease forwards;
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #4fc3f7, #29b6f6);
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(79, 195, 247, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(79, 195, 247, 0.6);
}

/* Dots */
.slider-nav {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot:hover {
  background: rgba(79, 195, 247, 0.7);
}

.slider-dot.active {
  background: #4fc3f7;
  box-shadow: 0 0 10px rgba(79, 195, 247, 0.8);
  transform: scale(1.2);
}

/* Text animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Features Section ========== */
#features {
  padding: 4rem 0;
  background-color: #fff;
}

#features h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #1a1a1a;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature {
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

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

.feature h3 {
  color: #00a8ff;
  margin-bottom: 1rem;
}

/* ========== Main & headings ========== */
main {
  padding: 30px 0;
}

h1 {
  font: italic small-caps bold 2.5rem/1.2 'Segoe UI', sans-serif;
  color: #1a2a6c;
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #4fc3f7;
}

h2 {
  color: #1a2a6c;
  margin: 25px 0 15px;
  font-size: 1.8rem;
}

h3 {
  color: #1a2a6c;
  margin: 20px 0 10px;
  font-size: 1.4rem;
}

/* ========== Product Sections ========== */
.product {
  background: rgba(247, 246, 246, 0.9);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.product-content {
  display: flex;
  flex-wrap: wrap;
}

.product-image {
  flex: 1;
  min-width: 300px;
  margin-right: 25px;
  margin-bottom: 20px;
}

.product-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s ease-in-out;
}

.product-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-details {
  flex: 2;
  min-width: 300px;
  color: #0d0c0c;
}

.product-features {
  background-color: #e3f2fd;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  color: #08023f;
}

.product-features ul {
  list-style-type: square;
  margin-left: 20px;
}

.product-features li {
  margin-bottom: 8px;
}

/* ========== Aside ========== */
aside {
  width: 25%;
  float: right;
  background: linear-gradient(to bottom, #e3f2fd, #bbdefb);
  padding: 20px;
  margin: 0 0 20px 25px;
  border-radius: 8px;
  border: 2px solid #90caf9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

aside h2 {
  color: #1a2a6c;
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #90caf9;
}

aside ul {
  list-style-type: none;
}

aside li {
  padding: 10px 0;
  border-bottom: 1px dashed #90caf9;
}

aside li:last-child {
  border-bottom: none;
}

/* ========== Footer ========== */
footer {
  background: linear-gradient(135deg, #1a2a6c, #2b5876);
  color: white;
  text-align: center;
  padding: 20px 0;
  width: 100%;
  clear: both;
}

footer p {
  font-size: 0.9rem;
  opacity: 0.9;
}

footer a {
  color: #4fc3f7;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ========== Enquiry form ========== */
#enquiry-form {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

fieldset {
  border: 2px solid #1a2a6c;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  background: #f8f9fa;
}

legend {
  font-weight: bold;
  color: #1a2a6c;
  padding: 0 10px;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #2b5876;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #4fc3f7;
  box-shadow: 0 0 5px rgba(79, 195, 247, 0.5);
}

input:invalid {
  border-color: #ff4757;
}

input:valid {
  border-color: #2ed573;
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-group label,
.checkbox-group label {
  display: flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit buttons */
.form-submit {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.submit-button,
.reset-button {
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.submit-button {
  background: linear-gradient(135deg, #4fc3f7, #29b6f6);
  color: white;
  box-shadow: 0 4px 15px rgba(79, 195, 247, 0.3);
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(79, 195, 247, 0.4);
  background: linear-gradient(135deg, #29b6f6, #4fc3f7);
}

.reset-button {
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  color: #666;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.reset-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
  color: #333;
}

.reset-button:active,
.submit-button:active {
  transform: translateY(1px);
}

.reset-button:focus,
.submit-button:focus {
  outline: 2px solid #4fc3f7;
  outline-offset: 2px;
}

/* ========== Order Summary (payment) ========== */
.order-summary {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  border-left: 5px solid #4fc3f7;
}

.summary-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.customer-details,
.order-details,
.price-summary {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.price-summary {
  grid-column: 1 / -1;
}

.total-amount {
  font-size: 1.2rem;
  font-weight: bold;
  color: #1a2a6c;
  border-top: 2px solid #4fc3f7;
  padding-top: 10px;
  margin-top: 10px;
}

.selected-features ul {
  margin: 10px 0 0 20px;
  list-style-type: disc;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ========== Error messages ========== */
.error-container {
  display: block !important;
  background: #ffe6e6;
  border: 1px solid #ff4757;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
}

.error-message h4 {
  color: #ff4757;
  margin-bottom: 10px;
}

.error-message ul {
  margin-left: 20px;
}

.error-message li {
  color: #d63031;
  margin-bottom: 5px;
}

/* Payment form block */
.payment-info {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* ========== About page blocks ========== */
.personal-info {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.student-photo {
  flex: 1;
  min-width: 250px;
  margin: 0;
  order: 2;
}

.student-photo img {
  width: 100%;
  border-radius: 8px;
  border: 6px double #1a2a6c;
  padding: 20px;
  background: white;
}

.student-photo figcaption {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-top: 10px;
}

.student-details {
  flex: 2;
  min-width: 300px;
  order: 1;
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 15px 20px;
}

dt {
  font-weight: bold;
  color: #1a2a6c;
  text-align: right;
}

dd {
  margin: 0;
  color: #333;
}

dd a {
  color: #4fc3f7;
  text-decoration: none;
}

dd a:hover {
  text-decoration: underline;
}

.bio,
.hometown,
.interests,
.timetable {
  margin-bottom: 40px;
  padding: 25px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.bio h2,
.hometown h2,
.interests h2,
.timetable h2 {
  color: #1a2a6c;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #4fc3f7;
}

.favorites {
  margin-bottom: 25px;
}

.favorites h3 {
  color: #2b5876;
  margin-bottom: 15px;
}

.favorites ul {
  list-style-type: square;
  margin-left: 20px;
}

.favorites li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* ========== Timetable (table) ========== */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-container table {
  width: 100%;
  min-width: 600px;
  margin: 0;
}

.timetable table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.95rem;
}

.timetable th {
  background: linear-gradient(135deg, #1a2a6c, #2b5876);
  color: white;
  font-weight: 600;
  padding: 15px 12px;
  text-align: center;
  border: 1px solid #1a2a6c;
  white-space: nowrap;
}

.timetable td {
  padding: 12px 10px;
  text-align: center;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.timetable td:first-child {
  font-weight: 600;
  background: #f8f9fa;
  color: #2b5876;
}

.timetable tr:nth-child(even) {
  background-color: #fafafa;
}

.timetable tr:hover {
  background-color: #f0f8ff;
}

.timetable td:hover {
  background-color: #e3f2fd;
  transform: scale(1.02);
}

.lecture {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb) !important;
  color: #0d47a1;
  font-weight: 600;
}

.lecture::before {
  content: "📚";
  margin-right: 5px;
}

.tutorial {
  background: linear-gradient(135deg, #f3e5f5, #e1bee7) !important;
  color: #4a148c;
  font-weight: 600;
}

.tutorial::before {
  content: "💬";
  margin-right: 5px;
}

.lab {
  background: linear-gradient(135deg, #e8f5e8, #c8e6c9) !important;
  color: #1b5e20;
  font-weight: 600;
}

.lab::before {
  content: "🔬";
  margin-right: 5px;
}

/* ========== Enhancements doc page ========== */
.intro,
.enhancement,
.enhancement-summary {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

.enhancement {
  border-left: 5px solid #4fc3f7;
}

.enhancement h2 {
  color: #1a2a6c;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e3f2fd;
}

.enhancement-details {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 20px;
}

.enhancement-info h3,
.enhancement-demo h3 {
  color: #2b5876;
  margin: 20px 0 15px;
  font-size: 1.2rem;
}

.enhancement-info p {
  line-height: 1.7;
  margin-bottom: 15px;
  color: #555;
}

.enhancement-demo {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.enhancement-demo ol,
.enhancement-demo ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.enhancement-demo li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.demo-note {
  background: #e3f2fd;
  padding: 15px;
  border-radius: 6px;
  border-left: 4px solid #2196f3;
  margin-top: 15px;
}

.demo-note p {
  margin: 0;
  font-size: 0.9rem;
  color: #0d47a1;
}

pre {
  background: #2b2b2b;
  color: #f8f8f2;
  padding: 20px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 15px 0;
}

code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9rem;
  color: #d63384;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.enhancement a {
  color: #4fc3f7;
  text-decoration: none;
  font-weight: 500;
}

.enhancement a:hover {
  text-decoration: underline;
}

/* ========== Comparison Panel (Enhancement 1) ========== */
.comparison-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #f8f9fa;
  border-top: 3px solid #4fc3f7;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
  padding: 20px;
  z-index: 999;
}

#comparison-content {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.compare-card {
  background: #fff;
  border: 2px solid #4fc3f7;
  border-radius: 8px;
  padding: 15px;
  width: 280px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.compare-card h4 {
  color: #1a2a6c;
  margin-bottom: 10px;
}

.compare-card ul {
  list-style: square;
  margin-left: 20px;
}

/* ========== ASSIGNMENT 3 ADDITIONS START HERE ========== */

/* Manager Page Styles */
.manager-actions {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.search-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 15px;
}

.orders-table {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow-x: auto;
}

.orders-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.orders-table th,
.orders-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.orders-table th {
  background: linear-gradient(135deg, #1a2a6c, #2b5876);
  color: white;
  font-weight: 600;
}

.orders-table tr:hover {
  background-color: #f8f9fa;
}

.status-form {
  margin: 0;
}

.status-form select {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}

.cancel-form {
  margin: 0;
  display: inline;
}

.cancel-button {
  background: #ff4757;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.cancel-button:hover {
  background: #ff3742;
}

.no-cancel {
  color: #999;
  font-style: italic;
}

.no-orders {
  text-align: center;
  padding: 40px;
  color: #666;
  font-style: italic;
}

/* Receipt Page Styles */
.receipt-details {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.receipt-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.receipt-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.receipt-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.receipt-actions .cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #4fc3f7, #29b6f6);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.receipt-actions .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(79, 195, 247, 0.4);
}

/* Form Error Styles */
.error-message {
  background: #ffe6e6;
  border: 1px solid #ff4757;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
}

.error-message h4 {
  color: #ff4757;
  margin-bottom: 10px;
}

.error-message ul {
  margin-left: 20px;
  color: #d63031;
}

/* Loading States */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 12px 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 12px 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* Room Size Planner */
.planner-reco {
  background: #e3f2fd;
  padding: 12px 15px;
  border-radius: 6px;
  border-left: 4px solid #2196f3;
  margin: 10px 0;
  display: none;
  color: #0d47a1;
  font-weight: 500;
}

.planner-reco.show {
  display: block;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) and (min-width: 768px) {
  .container {
    width: 95%;
    padding: 0 10px;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  nav ul li {
    margin: 0;
  }

  .hero-slider {
    height: 70vh;
  }

  .slide-content h2 {
    font-size: 2.5rem;
  }

  .slide-content p {
    font-size: 1.1rem;
  }

  .product-content {
    flex-direction: column;
  }

  .product-image {
    margin-right: 0;
    margin-bottom: 20px;
    min-width: 100%;
  }

  aside {
    width: 100%;
    float: none;
    margin: 20px 0;
  }

  .summary-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  table {
    font-size: 0.9rem;
  }

  th,
  td {
    padding: 10px 8px;
  }

  /* Manager responsive */
  .search-form .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .container {
    width: 100%;
    padding: 0 15px;
  }

  header {
    padding: 15px 0;
  }

  .logo {
    flex-direction: column;
    text-align: center;
  }

  .logo h1 {
    font-size: 1.8rem;
  }

  .logo span {
    font-size: 0.8rem;
  }

  nav ul {
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
  }

  nav ul li {
    margin: 0;
  }

  nav ul li a {
    display: block;
    padding: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
  }

  .hero-slider {
    height: 60vh;
    min-height: 400px;
  }

  .slide-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .slide-content p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .slider-nav {
    bottom: 20px;
    gap: 8px;
  }

  .slider-dot {
    width: 10px;
    height: 10px;
  }

  main {
    padding: 20px 0;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .product {
    padding: 15px;
    margin-bottom: 20px;
  }

  .product h2 {
    font-size: 1.5rem;
  }

  .product-image img {
    border-radius: 6px;
  }

  #enquiry-form,
  .payment-info,
  .order-summary,
  .enhancement,
  .intro {
    padding: 15px;
  }

  fieldset {
    padding: 15px;
  }

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

  .form-submit {
    flex-direction: column;
    gap: 10px;
  }

  .submit-button,
  .reset-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .summary-content {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .customer-details,
  .order-details,
  .price-summary {
    padding: 12px;
  }

  .personal-info {
    flex-direction: column;
    gap: 20px;
  }

  .student-photo {
    order: -1;
    max-width: 250px;
    margin: 0 auto;
  }

  dl {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  dt {
    text-align: left;
    font-weight: bold;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
    margin-top: 10px;
  }

  dt:first-of-type {
    margin-top: 0;
  }

  .timetable {
    overflow-x: auto;
  }

  table {
    font-size: 0.8rem;
    min-width: 600px;
  }

  th,
  td {
    padding: 8px 5px;
  }

  .enhancement-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .enhancement-demo {
    order: -1;
  }

  pre {
    padding: 15px;
    font-size: 0.8rem;
    overflow-x: auto;
  }

  /* Manager mobile */
  .manager-actions {
    padding: 15px;
  }

  .orders-table {
    padding: 15px;
  }

  .orders-table th,
  .orders-table td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .receipt-details {
    padding: 20px 15px;
  }

  .receipt-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .logo h1 {
    font-size: 1.6rem;
  }

  .logo span {
    font-size: 0.75rem;
  }

  .hero-slider {
    height: 50vh;
    min-height: 350px;
  }

  .slide-content h2 {
    font-size: 1.5rem;
  }

  .slide-content p {
    font-size: 0.9rem;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  #enquiry-form,
  .payment-info,
  .order-summary,
  .enhancement,
  .intro {
    padding: 12px;
  }

  fieldset {
    padding: 12px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    padding: 10px;
    font-size: 16px;
  }

  .bio,
  .hometown,
  .interests,
  .timetable {
    padding: 15px 12px;
  }

  .favorites ul {
    margin-left: 15px;
  }

  pre {
    padding: 12px;
    font-size: 0.75rem;
  }

  /* Manager extra small */
  .orders-table table {
    min-width: 500px;
  }

  .orders-table th,
  .orders-table td {
    padding: 6px 8px;
    font-size: 0.8rem;
  }
}

@media print {
  * {
    color: #000 !important;
    background: transparent !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
  }

  header,
  nav,
  footer,
  .cta-button,
  .slider-nav,
  .form-submit,
  .enhancement-demo {
    display: none !important;
  }

  a {
    text-decoration: underline;
    color: #000 !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
    color: #666;
  }

  .enhancement,
  .intro,
  .enhancement-summary,
  .product,
  .order-summary {
    border: 1px solid #000 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    margin-bottom: 20pt;
  }

  pre {
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    page-break-inside: avoid;
  }

  table {
    page-break-inside: avoid;
  }

  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Manager print */
  .manager-actions {
    display: none !important;
  }

  .orders-table {
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }
}

/* High-DPI */
@media (-webkit-min-device-pixel-ratio:2),
(min-resolution:192dpi) {

  .slide-1,
  .slide-2,
  .slide-3,
  .slide-4 {
    background-size: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-slider .slide {
    animation: none !important;
  }

  .slide-content h2,
  .slide-content p,
  .cta-button {
    animation: none !important;
  }

  .product-image img:hover {
    transform: none !important;
  }

  .loading-spinner {
    animation: none !important;
    display: none !important;
  }
}