:root {
  --color-primary: #1a4b4c;
  --color-primary-dark: #1d5354;
  --color-primary-light: #4d9394;
  --color-secondary: #5da8a9;
  --color-accent: #6cb0b1;
  --color-light: #f5f9f9;
  --color-white: #ffffff;
  --color-dark: #1c2b2b;
  --color-gray: #6c7a7a;
  --color-light-gray: #ecf0f0;
  --color-border: #dde5e5;
  --color-success: #27ae60;
  --color-success-bg: rgba(39, 174, 96, 0.1);
  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Accessibility helper class */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =========== ANIMATIONS =========== */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseSuccess {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========== HEADER STYLING =========== */
.header {
  background-color: var(--color-primary);
  color: white;
  padding: 1rem 0;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background-color: rgba(26, 75, 76, 0.95);
  backdrop-filter: blur(5px);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  flex: 1;
  min-width: 180px;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
}

.logo img {
  height: 40px;
  margin-right: 10px;
  background-color: white;
  border-radius: var(--radius-sm);
  padding: 3px;
}

.logo-text {
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

.central-title {
  flex: 2;
  text-align: center;
}

.central-title h1 {
  margin: 0;
  color: white;
  font-size: 1.6rem;
  font-weight: 600;
  white-space: nowrap;
}

.header-space {
  flex: 1;
  min-width: 180px;
}

/* =========== LAYOUT COMPONENTS =========== */
#main {
  max-width: 800px;
  margin: 1rem auto;
  padding: 0 1.5rem;
  flex: 1;
}

/* Document page gets wider main container */
.document-page {
  max-width: 1000px !important;
}

/* =========== FORM STYLING =========== */
.form-container {
  width: 100%;
  max-width: 700px;
  margin: 2rem auto;
}

.form {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  margin-top: 0.5rem;
}

.info-section {
  background-color: var(--color-light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.shipment-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.container.info-section {
  background-color: var(--color-white);
  border-left: 4px solid var(--color-primary-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  animation: slideUp 0.6s ease-out;
}

.container.info-section p:first-child {
  font-weight: 500;
  color: var(--color-primary-dark);
  margin-bottom: 0.7rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-label {
  font-size: 0.9rem;
  color: var(--color-gray);
  display: flex;
  align-items: center;
}

.info-label i {
  margin-right: 0.5rem;
  color: var(--color-primary);
}

.info-value {
  font-size: 1.1rem;
}

.checkbox-group {
  position: relative;
  padding: 0.75rem 0;
  margin: 1rem 0;
  display: flex;
  align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  margin-right: 10px;
  position: relative;
  top: 2px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.checkbox-group input[type="checkbox"]:checked {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.checkbox-group input[type="checkbox"]:checked::after {
  content: "✓";
  color: white;
  position: absolute;
  font-size: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.checkbox-group label {
  cursor: pointer;
  user-select: none;
  line-height: 1.5;
}

.form-group {
  margin: 1.5rem 0;
}

/* Style for input field */
.form-group input[type="text"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input[type="text"]:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(93, 168, 169, 0.1);
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-dark);
}

/* Input with icon */
.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray);
}

.input-with-icon input {
  padding-left: 2.8rem;
  width: 100%;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  padding-right: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition);
}

.input-with-icon input:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(93, 168, 169, 0.1);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-secondary {
  background-color: var(--color-light-gray);
  color: var(--color-dark);
  border: 1px solid var(--color-border);
}

.btn-primary:hover, .btn-secondary:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-full {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}


.error {
  background-color: #a50000;
  color: var(--color-white);
  width: 100%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

/* Important note */
.important-note {
  background-color: var(--color-light);
  padding: 1rem;
  border-left: 4px solid var(--color-primary);
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
}

.important-note h3 {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.important-note h3 i {
  margin-right: 0.5rem;
}

.important-note p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Info list */
.info-list {
  margin: 0.5rem 0 0 1.5rem;
  padding: 0;
  color: var(--color-gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

.info-list li {
  margin-bottom: 0.8rem;
}

.info-list li:last-child {
  margin-bottom: 0;
}

/* Margin utilities */
.mb-4 {
  margin-bottom: 1.5rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

/* =========== DOCUMENT PAGE STYLES =========== */
.document-container {
  width: 100%;
  margin: 1rem 0;
}

/* Success message styling */
.success-message {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: rgba(39, 174, 96, 0.1);
  color: var(--color-success);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  font-weight: 500;
}

.success-message i {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.success-message p {
  margin: 0;
  font-size: 1.1rem;
}

.shipment-status {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.shipment-dates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.date-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.date-label {
  font-size: 0.9rem;
  color: var(--color-gray);
  display: flex;
  align-items: center;
}

.date-label i {
  margin-right: 0.5rem;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.date-value {
  font-size: 1.1rem;
  color: var(--color-dark);
}

.document-section {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.section-title {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  font-weight: 600;
}

.section-title i {
  margin-right: 0.8rem;
  font-size: 1.2rem;
}

/* Document table */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
}

.document-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
}

.document-table th, 
.document-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.document-table th {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 500;
  white-space: nowrap;
}

.document-table th:first-child {
  border-top-left-radius: var(--radius-sm);
}

.document-table th:last-child {
  border-top-right-radius: var(--radius-sm);
}

.document-table tr:hover {
  background-color: var(--color-light);
}

.document-table tr:last-child td {
  border-bottom: none;
}

.file-type {
  text-align: center;
  width: 60px;
}

.file-type img {
  max-height: 24px;
  vertical-align: middle;
}

.file-name {
  font-weight: 500;
}

.file-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  transition: var(--transition);
}

.file-download:hover {
  color: var(--color-secondary);
}

.file-size {
  white-space: nowrap;
  color: var(--color-gray);
  font-size: 0.9rem;
  width: 100px;
  text-align: right;
}

/* Download all files row styling */
.download-all-row {
  background-color: var(--color-light) !important;
}

.download-all-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.download-all-link i {
  color: var(--color-success);
}

/* Shipment content section */
.shipment-content {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  border-left: 4px solid var(--color-primary-light);
}

.content-title {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  font-weight: 600;
}

.content-title i {
  margin-right: 0.8rem;
}

.shipment-content p {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.shipment-content p:first-of-type {
  font-weight: 500;
}

.action-section {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.action-section .btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
}

/* =========== THANK YOU PAGE STYLES =========== */
.thank-you-container {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 700px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thank-you-icon {
  color: var(--color-primary-light);
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: pulseSuccess 2s infinite;
}

.thank-you-title {
  color: var(--color-primary);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.thank-you-message {
  margin-bottom: 2rem;
  line-height: 1.6;
  color: var(--color-dark);
  max-width: 600px;
}

.thank-you-message p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Make the button larger on this page */
.thank-you-container .btn {
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
}

/* =========== FOOTER STYLING =========== */
#footer, .simplified-footer {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  margin-top: auto;
  width: 100%;
}

#footer a, .simplified-footer a {
  color: var(--color-white);
}

#footer a:hover, .simplified-footer a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}


.sysinfo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 10px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.sysinfo.develop {
  background-color: #e74c3c;
  color: var(--color-light-gray);
}

.sysinfo.demo {
  background-color: var(--color-primary-light);
  color: white;
}


/* =========== RESPONSIVE ADJUSTMENTS =========== */
@media screen and (max-width: 900px) {
  .header-wrapper {
    flex-direction: column;
    gap: 0.7rem;
  }
  
  .logo {
    justify-content: center;
    margin-bottom: 0.5rem;
  }
  
  .central-title h1 {
    font-size: 1.4rem;
  }
  
  .header-space {
    display: none;
  }
  
  #timer {
    top: 130px;
  }
  
  #main {
    margin-top: 0.5rem;
  }
  
  .shipment-dates {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .thank-you-container {
    padding: 2rem 1.5rem;
    margin: 1rem auto;
  }
  
  .thank-you-icon {
    font-size: 3.5rem;
  }
  
  .thank-you-title {
    font-size: 1.6rem;
  }
  
  .thank-you-message p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 768px) {  
  .form {
    padding: 1.5rem;
  }
  
  .shipment-info {
    grid-template-columns: 1fr;
  }
  
  .document-table th, 
  .document-table td {
    padding: 0.8rem;
  }
  
  .shipment-dates {
    grid-template-columns: 1fr;
  }
  
  .document-section {
    padding: 1rem;
  }
  
  .file-size {
    width: 80px;
  }
  
  .document-table th:nth-child(1),
  .document-table td:nth-child(1) {
    width: 40px;
    padding-right: 0;
  }
  
  .document-table th:nth-child(2),
  .document-table td:nth-child(2) {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

@media screen and (max-width: 480px) {
  #main {
    padding: 0 1rem;
    margin: 0.5rem auto;
  }
  
  .central-title h1 {
    font-size: 1.2rem;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
  
  .logo img {
    height: 32px;
  }
  
  .btn-full {
    padding: 0.8rem;
  }
  
  #timer {
    top: 120px;
    right: 10px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .header {
    padding: 0.7rem 0;
  }
  
  .header-container {
    padding: 0 1rem;
  }
  
  .document-section {
    padding: 1rem;
  }
  
  .section-title {
    font-size: 1.1rem;
  }
  
  .action-section .btn {
    width: 100%;
  }
  
  .success-message {
    flex-direction: column;
    text-align: center;
    padding: 0.8rem;
  }
  
  .success-message p {
    font-size: 1rem;
  }
  
  /* Optimize table for mobile */
  .document-table th, 
  .document-table td {
    padding: 0.7rem 0.5rem;
  }
  
  .file-size {
    width: 70px;
    font-size: 0.8rem;
  }
  
  .thank-you-container {
    padding: 1.5rem 1rem;
  }
  
  .thank-you-icon {
    font-size: 3rem;
  }
  
  .thank-you-title {
    font-size: 1.4rem;
  }
}
