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

:root {
    --primary-color: #4A90E2;
    --primary-hover: #357ABD;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --background-color: #ffffff;
    --card-background: #ffffff;
    --border-color: #e3f2fd;
    --text-color: #333333;
    --text-light: #6b7280;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.fab-container {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

/* GOOGLE PLAY BUTTON */
.fab-link.playstore {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.fab-link.playstore img {
  height: 70px;      /* SAME HEIGHT AS BUTTON */
  width: auto;
  display: block;
}

/* WEBSITE BUTTON (MATCH STYLE) */
.fab-link.website {
  height: 48px;
  padding: 0 10px;
  padding-left: 5px;
  background: black;   /* dark black/blue */
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.fab-link.website img.website-icon {
    height: 32px;  /* size of the logo */
    width: auto;
    display: block;
    margin-left: 1px;
}

.fab-link.website:hover {
  background: #1f2937;
}



/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-logo i {
    font-size: 2rem;
}

.env-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Title Container */
.title-container {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
    margin: 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.title-container h1 {
    font-size: 26px;
    margin: 0;
    font-weight: 700;
    color: #4A90E2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Main Container */
.main-container {
    min-height: calc(100vh - 200px);
}

.content-wrapper {
    background: #f5f5f5;
    min-height: 100vh;
}

.form-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.form-container {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid #e0e0e0;
    max-width: 900px;
    margin: 0 auto;
    overflow: visible;
    height: auto;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    gap: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.progress-step.active .step-number {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-line {
    flex-grow: 1;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 1rem;
    margin-top: 22.5px;
    transition: all 0.3s ease;
    display: block;
}

.progress-line.active {
    background-color: var(--primary-color);
}

/* Form Sections */
.form-section {
    display: none;
}

.form-section.active-section {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.section-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 1.5rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    margin: -2.5rem -2.5rem 2rem -2.5rem;
    padding: 1.5rem 2.5rem;
    border-radius: 20px 20px 0 0;
}

.section-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
}

.section-header i {
    color: var(--primary-color);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1rem;
}

/* Form Content */
.form-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form Row Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button-group .btn {
        width: 100%;
    }
}

/* PNR Info Icon */
.pnr-info-icon {
    color: var(--primary-color);
    cursor: help;
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.pnr-info-icon:hover {
    color: var(--primary-hover);
}

/* Date Input Styling - Fix visibility and positioning */
input[type="date"] {
    color-scheme: light;
    -webkit-text-fill-color: #000 !important;
    position: relative;
    display: flex;
    align-items: center;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    position: relative;
    display: inline-block;
}

input[type="date"]::-webkit-datetime-edit {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0;
}

input[type="date"]::-webkit-datetime-edit-text {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    padding: 0 0.3em;
}

input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    padding: 0 0.1em;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 1;
    position: relative;
    margin-left: auto;
}

/* Input with icon styling */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon input {
    padding-right: 3.5rem;
}

.input-with-icon .pnr-info-icon {
    position: absolute;
    right: 1.25rem;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
    background: #ffffff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.input-with-icon .pnr-info-icon:hover {
    background: var(--primary-color);
    color: white;
}

/* Remove section header styling for cleaner look */
.section-header {
    display: none;
}

/* Form labels styling to match screenshot */
.form-group label {
    font-weight: 600;
    color: #666;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: block;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #666;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.required {
    color: var(--error-color);
}

.optional {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.875rem;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    pointer-events: none;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid #e3f2fd;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.08);
}

input,
select,
textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
    font-family: inherit;
    color: #333;
    box-shadow: none;
}

input[type="date"] {
    color: #333;
}

input[readonly] {
    background-color: #f8f9fa;
    color: #666;
    cursor: default;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

input:hover,
select:hover,
textarea:hover {
    border-color: #ccc;
    background-color: #ffffff;
}

input:disabled,
select:disabled,
textarea:disabled {
    background-color: var(--background-color);
    cursor: not-allowed;
    opacity: 0.6;
}

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

.form-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Character Count */
.char-count {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: right;
    margin-top: 0.5rem;
}

/* Info Display */
.info-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: rgba(30, 64, 175, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline:active {
    transform: translateY(0);
}

/* Button Group */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.button-group .btn {
    width: 100%;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.app-buttons-row {
    justify-content: center;
  display: flex;
  gap: 20px;
  margin-top: 32px;
}

.app-buttons-row .btn {
  flex: 1 1 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.btn-icon-highlight {
  width: 40px;
  height: 40px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}


/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.form-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.alert i {
    font-size: 1.25rem;
}

.hidden {
    display: none !important;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
}

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

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

/* Modal */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.modal-content {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    width: 90%;
    z-index: 1001;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 2rem 2rem;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-body h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.modal-body p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.success-ref {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1rem;
    font-size: 1.1rem;
}

.success-ref span {
    font-family: 'Courier New', monospace;
    background-color: var(--background-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
}

.modal-footer .btn {
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: white;
    text-align: center;
    padding: 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-content p {
    margin: 0.5rem 0;
}

/* ===========================
   FILE UPLOAD & PREVIEW
   =========================== */

.file-upload-box {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.file-upload-box:hover {
    border-color: var(--primary-color);
    background-color: #f0f7ff;
}

.file-upload-box input[type="file"] {
    display: none;
}

.upload-icon {
    display: block;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.upload-text {
    display: block;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.preview-container {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.preview-container h4 {
    margin-top: 0;
    color: var(--text-color);
    font-weight: 600;
}

.file-preview-item {
    display: inline-block;
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.file-preview-item img {
    display: block;
    border-radius: 4px;
    margin-bottom: 0.25rem;
    max-width: 100px;
    max-height: 100px;
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}

.preview-container.hidden {
    display: none;
}

/* API Monitor */
.api-monitor {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 400px;
    max-width: 90vw;
    z-index: 999;
}

.monitor-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 12px 15px;
    border-radius: 6px 6px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.monitor-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.monitor-toggle {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.monitor-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.monitor-content {
    display: none;
    padding: 15px;
}

.monitor-content.visible {
    display: block;
}

.monitor-logs {
    max-height: 400px;
    overflow-y: auto;
}

.monitor-logs p {
    margin: 0;
}

#apiLogs {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.4;
}

.api-status-success {
    color: var(--success-color);
    font-weight: 600;
}

.api-status-error {
    color: var(--error-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .api-monitor {
        width: calc(100vw - 40px);
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.875rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .progress-indicator {
        gap: 0;
        margin-bottom: 2rem;
    }

    .progress-line {
        margin: 0 0.5rem;
        margin-top: 22.5px;
    }

    .section-header h2 {
        font-size: 1.35rem;
    }

    .info-display {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        max-width: 400px;
    }

    .content-wrapper {
        padding: 1rem;
    }
}

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

    .nav-logo {
        font-size: 1.125rem;
    }

    .nav-logo i {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .form-container {
        padding: 1rem;
        border-radius: 8px;
    }

    .progress-step .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .progress-line {
        margin: 0 0.25rem;
    }

    .progress-indicator {
        gap: 0;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .section-header h2 {
        font-size: 1.15rem;
        gap: 0.5rem;
    }

    .section-header h2 i {
        font-size: 1.25rem;
    }

    .form-group {
        gap: 0.25rem;
    }

    .input-wrapper input,
    .input-wrapper select {
        padding: 0.65rem 1rem 0.65rem 2.5rem;
    }

    input,
    select,
    textarea {
        padding: 0.65rem 0.75rem;
        font-size: 16px;
    }

    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }

    .modal-content {
        width: 95%;
    }

    .modal-body {
        padding: 1.5rem 1rem;
    }

    .success-icon {
        font-size: 3rem;
    }

    .modal-body h2 {
        font-size: 1.35rem;
    }

    .footer {
        padding: 1.5rem 1rem;
    }
}

/* Rating Groups and Select Styling */
.rating-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rating-group label {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

.rating-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--card-background);
    color: var(--text-color);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-select:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.rating-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Select styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* File input styling */
input[type="file"] {
    padding: 0.75rem;
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--card-background);
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="file"]:hover {
    border-color: var(--primary-color);
    background-color: rgba(30, 64, 175, 0.02);
}

input[type="file"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Feedback Table Styling */
.feedback-table-wrapper {
    overflow: visible;
    margin: 1.5rem 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
}

/* New stacked rating layout: options below each item in a single row */
.feedback-table thead {
    display: none; /* hide header row */
}

.feedback-table tbody tr {
    display: block;
    padding: 0.5rem 0.5rem;
    border-bottom: 1px solid #e0e0e0;
    background-color: #ffffff;
}

.feedback-table tbody tr:last-child {
    border-bottom: none;
}

.feedback-table tbody tr:hover {
    background-color: #f8f8f8;
}

.feedback-table td.item-column {
    display: block;
    width: 100%;
    border: none;
    padding: 0 0 0.6rem 0;
    font-weight: 600;
    color: #222;
    font-size: 0.8rem;
    line-height: 1.1;
}

.feedback-table td:not(.item-column) {
    display: inline-flex;
    border: none;
    padding: 0;
    vertical-align: middle;
    width: auto;
}

/* Add compact spacing for checkboxes with labels - SINGLE ROW NO SCROLL */
.feedback-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    margin-right: 0.2rem;
    margin-bottom: 0;
    padding: 0.1rem 0.2rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.55rem;
    border: 1px solid transparent;
}

.feedback-option:last-child {
    margin-right: 0;
}

.feedback-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feedback-option label {
    font-size: 0.55rem;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    margin: 0;
    line-height: 1;
}

/* Ensure all options stay in single row - no wrapping */
.feedback-table td:not(.item-column) {
    display: inline-flex;
    border: none;
    padding: 0;
    vertical-align: middle;
    white-space: nowrap;
    flex-wrap: nowrap;
}

/* Color coding for feedback values */
.feedback-option input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Excellent (5) - Green - Only checkbox highlighted */
.feedback-option:has(input[value="5"]:checked) {
    background-color: transparent;
    border: 1px solid transparent;
    box-shadow: none;
}

.feedback-option:has(input[value="5"]:checked) label {
    color: var(--text-color);
    font-weight: 500;
}

/* Very Good (4) - Yellow - Only checkbox highlighted */
.feedback-option:has(input[value="4"]:checked) {
    background-color: transparent;
    border: 1px solid transparent;
    box-shadow: none;
}

.feedback-option:has(input[value="4"]:checked) label {
    color: var(--text-color);
    font-weight: 500;
}

/* Good (3) - Blue - Only checkbox highlighted */
.feedback-option:has(input[value="3"]:checked) {
    background-color: transparent;
    border: 1px solid transparent;
    box-shadow: none;
}

.feedback-option:has(input[value="3"]:checked) label {
    color: var(--text-color);
    font-weight: 500;
}

/* Average (2) - Orange - Only checkbox highlighted */
.feedback-option:has(input[value="2"]:checked) {
    background-color: transparent;
    border: 1px solid transparent;
    box-shadow: none;
}

.feedback-option:has(input[value="2"]:checked) label {
    color: var(--text-color);
    font-weight: 500;
}

/* Poor (1) - Dark Red - Only checkbox highlighted */
.feedback-option:has(input[value="1"]:checked) {
    background-color: transparent;
    border: 1px solid transparent;
    box-shadow: none;
}

.feedback-option:has(input[value="1"]:checked) label {
    color: var(--text-color);
    font-weight: 500;
}

.feedback-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-background);
}

.feedback-table thead {
    background-color: var(--primary-color);
    color: white;
    position: sticky;
    top: 0;
}

.feedback-table th {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.feedback-table th.item-column {
    text-align: left;
    min-width: 300px;
}

.feedback-table th.rating-column {
    min-width: 120px;
}

.feedback-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.feedback-table tbody tr:hover {
    background-color: rgba(30, 64, 175, 0.02);
}

.feedback-table tbody tr:last-child {
    border-bottom: none;
}

.feedback-table td {
    padding: 1rem;
    border: 1px solid var(--border-color);
    text-align: center;
    vertical-align: middle;
}

.feedback-table td.item-column {
    text-align: left;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.feedback-table input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: var(--primary-color);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid #999;
    border-radius: 4px;
    background-color: white;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.feedback-table input[type="checkbox"]:hover {
    border-color: #666;
    background-color: #f9f9f9;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.feedback-table input[type="checkbox"]:checked {
    background-color: #1976d2;
    border-color: #1565c0;
    box-shadow: 0 2px 6px rgba(25, 118, 210, 0.4);
}

/* Color the checkbox based on rating value */
.feedback-option:has(input[value="5"]:checked) input[type="checkbox"] {
    background-color: #4CAF50;
    border-color: #388E3C;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4);
}

.feedback-option:has(input[value="4"]:checked) input[type="checkbox"] {
    background-color: #FDD835;
    border-color: #F9A825;
    box-shadow: 0 2px 6px rgba(253, 216, 53, 0.4);
}

.feedback-option:has(input[value="3"]:checked) input[type="checkbox"] {
    background-color: #2196F3;
    border-color: #1976D2;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.4);
}

.feedback-option:has(input[value="2"]:checked) input[type="checkbox"] {
    background-color: #FF6F00;
    border-color: #E65100;
    box-shadow: 0 2px 6px rgba(255, 111, 0, 0.4);
}

.feedback-option:has(input[value="1"]:checked) input[type="checkbox"] {
    background-color: #C62828;
    border-color: #B71C1C;
    box-shadow: 0 2px 6px rgba(198, 40, 40, 0.4);
}

.feedback-table input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.feedback-table input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.3);
}

/* Responsive table */
@media (max-width: 768px) {
    .feedback-table-wrapper {
        margin: 1rem 0;
    }

    .feedback-table tbody tr {
        padding: 1rem 0.75rem;
    }

    .feedback-table td.item-column {
        font-size: 0.9rem;
        padding: 0 0 0.6rem 0;
    }

    .feedback-option {
        margin-right: 0.5rem;
        padding: 0.3rem 0.4rem;
        font-size: 0.7rem;
    }

    .feedback-option label {
        font-size: 0.7rem;
    }

    .feedback-table input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    .feedback-table input[type="checkbox"]:checked::after {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .feedback-table tbody tr {
 feature/mobile-responsive-fix
        padding: 0.4rem 0.1rem;
        margin-bottom: 0.3rem;
        border-radius: 6px;
        background: #f9f9f9;
    }

    .feedback-table td.item-column {
        font-size: 0.55rem;
        padding: 0 0 0.2rem 0;
        line-height: 1.1;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;

 feature/mobile-responsive-fix
        padding: 0.3rem 0.05rem;

        padding: 0.4rem 0.1rem;
 uat
    }

    .feedback-table td.item-column {
        font-size: 0.65rem;
        padding: 0 0 0.3rem 0;
 feature/mobile-responsive-fix
        line-height: 1.2;
        word-break: break-word;

 uat
uat
    }

    .feedback-option {
        margin-right: 0.01rem;
        padding: 0.05rem 0.01rem;
        gap: 0.02rem;
        font-size: 0.28rem !important;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
        text-align: center;
        background: transparent;
        border: none;
        transform: none;
        max-width: 19.5%;
    }

    .feedback-option label {
 feature/mobile-responsive-fix
        font-size: 0.26rem !important;
        line-height: 0.9;

 feature/mobile-responsive-fix
        font-size: 0.6rem !important;
        line-height: 1;
 uat
        font-weight: 500;
        white-space: nowrap;
        display: block;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
        padding: 0;
        margin: 0;
    }

    .feedback-table input[type="checkbox"] {
        width: 7px;
        height: 7px;
        margin: 0;

        font-size: 0.38rem !important;
    }

    .feedback-option span {
        white-space: nowrap;
        font-size: 0.38rem !important;
    }

    .feedback-table input[type="checkbox"] {
        width: 11px;
        height: 11px;
 uat
    }
    
    body {
        overflow-x: hidden !important;
feature/mobile-responsive-fix
        width: 100vw;
        font-size: 14px;

 uat
    }
    
    .feedback-table-wrapper {
        overflow-x: hidden !important;
 feature/mobile-responsive-fix
        width: 100%;
        max-width: 100vw;
        margin: 0.3rem 0;
        border: none;
        box-shadow: none;
        background: transparent;
    }
    
    .form-container {
        padding: 0.3rem;
        margin: 0;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .form-wrapper {
        padding: 0.3rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .feedback-table td:not(.item-column) {
        padding: 0;
        gap: 0;
        display: flex;
        justify-content: space-between;
        width: 100%;
        overflow: hidden;
        flex-wrap: nowrap;
    }
    
    .feedback-table input[type="checkbox"]:checked::after {
 feature/mobile-responsive-fix
        font-size: 4px;
    }
    
    .feedback-option:last-child {
        margin-right: 0;

        font-size: 8px;

 uat
 uat
    }
}

/* PNR Info Modal */
.pnr-info-modal {
    max-width: 400px;
    border-radius: 15px;
}

.pnr-info-modal .modal-header {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px 15px 0 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pnr-info-modal .modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.pnr-status {
    padding: 1rem 0;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.95rem;
}

.status-item.valid {
    color: #28a745;
}

.status-item.invalid {
    color: #dc3545;
}

.status-item i {
    font-size: 1.1rem;
}

.pnr-info-modal .modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
}

.pnr-info-modal .btn {
    min-width: 80px;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
}

/* Train Info Header */
.train-info-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.train-info-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.train-info-header p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Category Buttons */
.category-buttons {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background-color: var(--card-background);
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
}

.category-btn:hover {
    border-color: var(--primary-color);
    background-color: rgba(30, 64, 175, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.category-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.category-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

/* Responsive category buttons */
@media (max-width: 768px) {
    .category-buttons {
        gap: 0.75rem;
    }

    .category-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
        min-width: 90px;
    }
}


/* Override date input to fix visibility */
input#manualJourneyDate {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

input#manualJourneyDate::-webkit-datetime-edit {
    line-height: normal !important;
    padding: 0 !important;
}

/* Feedback section - allow scrolling */
#feedbackSection {
    overflow: visible;
    height: auto;
    min-height: auto;
    max-height: none;
}

#feedbackSection .form-content {
    gap: 0.75rem;
}

#feedbackSection .form-group {
    margin-bottom: 0.5rem;
}

#feedbackSection .form-row {
    margin-bottom: 0.5rem;
    gap: 1rem;
}

/* Compact feedback table */
.feedback-table-wrapper {
    overflow: visible;
    margin: 0.5rem 0;
}

.feedback-table tbody tr {
    padding: 0.75rem 0.5rem;
}

.feedback-table td.item-column {
    padding: 0 0 0.5rem 0;
    font-size: 0.85rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.feedback-option {
    padding: 0.25rem 0.4rem;
    margin-right: 0.3rem;
    font-size: 0.7rem;
}

.feedback-option label {
    font-size: 0.7rem;
    cursor: pointer;
}

/* Compact comment box */
#comment {
    min-height: 60px;
    rows: 3;
}

/* Compact file upload boxes */
.file-upload-box-compact {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-upload-box-compact:hover {
    border-color: var(--primary-color);
    background-color: #f0f7ff;
}

.file-upload-box-compact input[type="file"] {
    display: none;
}

.file-upload-box-compact i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Compact form actions */
#feedbackSection .form-actions {
    margin-top: 1rem;
    gap: 0.5rem;
}

#feedbackSection .form-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}



/* Prevent horizontal scroll */
body, html {
    overflow-x: hidden;
    max-width: 100vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.form-container {
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.form-content {
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.feedback-table-wrapper {
    max-width: 100%;
    overflow-x: auto;
}

/* Compact preview container */
.preview-container-compact {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preview-container-compact.hidden {
    display: none;
}

.preview-item-compact {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.preview-item-compact img,
.preview-item-compact video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    padding: 0;
    z-index: 10;
}

.preview-remove-btn:hover {
    background: #cc0000;
}

/* Update preview styles */
.preview-container-compact {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.preview-item-compact {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: visible !important;
    border: 2px solid #ddd;
}

.preview-item-compact img,
.preview-item-compact video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.preview-remove-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff0000;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    padding: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.preview-remove-btn:hover {
    background: #cc0000;
}

.preview-remove-btn i {
    pointer-events: none;
}

/* Extreme mobile fixes for text overflow */
@media (max-width: 480px) {
    .feedback-table tbody tr {
        padding: 0.2rem 0.05rem !important;
        margin-bottom: 0.1rem;
        background: #f9f9f9;
    }

    .feedback-table td.item-column {
        font-size: 0.45rem !important;
        padding: 0 0 0.1rem 0 !important;
        line-height: 1 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .feedback-option {
        margin-right: 0.005rem !important;
        padding: 0.05rem 0.01rem !important;
        gap: 0.02rem !important;
        font-size: 0.18rem !important;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
        text-align: center;
        background: transparent !important;
        border: none !important;
        max-width: 19.5%;
    }

    .feedback-option label {
        font-size: 0.16rem !important;
        line-height: 0.7 !important;
        font-weight: 400 !important;
        white-space: nowrap;
        display: block;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
        padding: 0;
        margin: 0;
    }

    .feedback-table input[type="checkbox"] {
        width: 5px !important;
        height: 5px !important;
        margin: 0;
    }
    
    .feedback-table td:not(.item-column) {
        padding: 0 !important;
        gap: 0 !important;
        display: flex;
        justify-content: space-between;
        width: 100%;
        overflow: hidden;
        flex-wrap: nowrap;
    }
    
    .feedback-table input[type="checkbox"]:checked::after {
        font-size: 2px !important;
    }

    /* Container to hold both buttons */
.fab-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Space between the two buttons */
    z-index: 9999; /* Ensure they stay on top of other elements */
    align-items: flex-end;
}

/* Style for the link wrapper */
.fab-link {
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: block;
}

/* Hover effect */
.fab-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Button image styling */
.fab-img {
    height: 45px; /* Adjust height as needed */
    width: auto;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.3)); /* Adds depth */
    border-radius: 8px;
}

/* Mobile Adjustment: Make them slightly smaller on small screens */
@media (max-width: 480px) {
    .fab-container {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    .fab-img {
        height: 38px;
    }
}

}


/* ===============================
   FINAL FEEDBACK RATING BAR
=============================== */

.feedback-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.feedback-question {
    font-weight: 600;
    color: #111;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Rating bar container */
.rating-group {
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
    margin-bottom: 0;
}

/* Individual rating boxes */
.rating-cell {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    border-right: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.rating-cell:last-child {
    border-right: none;
}

.rating-cell:hover {
    background-color: #f9fafb;
}

/* Selected states — clean pastel fill, no thick borders */
.rating-cell.selected[data-value="Excellent"] {
    background-color: #86efac; /* Richer green */
    color: #064e3b;
    font-weight: 600;
}

.rating-cell.selected[data-value="Very Good"] {
    background-color: #bbf7d0; /* Deeper mint green */
    color: #065f46;
    font-weight: 600;
}

.rating-cell.selected[data-value="Good"] {
    background-color: #fed7aa; /* Richer orange tone */
    color: #7c2d12;
    font-weight: 600;
}

.rating-cell.selected[data-value="Average"] {
    background-color: #fde68a; /* Brighter yellow */
    color: #78350f;
    font-weight: 600;
}

.rating-cell.selected[data-value="Poor"] {
    background-color: #fca5a5; /* Stronger red */
    color: #7f1d1d;
    font-weight: 600;
}

/* Slight transition for color fade */
.rating-cell {
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* Slight hover feedback */
.rating-cell:hover:not(.selected) {
    background-color: #f3f4f6;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .rating-group {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .rating-cell {
        font-size: 0.9rem;
        padding: 0.65rem 0;
    }
}



