/* Import Nunito Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Stack+Sans+Text:wght@200..700&display=swap');/* Root Variables */
:root {
    /* Color Palette */
    --primary-bg: #edeae5;        /* Light gray background */
    --primary-color: #333333;      /* Dark text */
    --secondary-color: #4f4f4f;    /* Slightly lighter text */
    --accent-color: #FF6F61;       /* Accent color (warm orange-red) */
    --border-color: #e0e0e0;       /* Light gray border */
    
    /* Shadows */
    --shadow-light: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 3px 6px rgba(0, 0, 0, 0.2);
    --shadow-dark: 0 6px 12px rgba(0, 0, 0, 0.3);
    
    /* Border Radii */
    --sharp-radius: 0px;            /* Sharp corners (brutalist) */
    --soft-radius: 4px;             /* Optional soft radius */
    
    /* Typography */
    --font-family: "Poppins", sans-serif;
    --base-font-size: 16px;
    --heading-font-size: 2rem;      /* Larger headings */
    --subheading-font-size: 1.25rem;
}

/* Basic Styles */
body {
    font-family: var(--font-family);
    font-size: var(--base-font-size);
    background-color: var(--primary-bg);
    color: var(--primary-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Heading Styles */
h1, h2, h3 {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.logo img {
    max-width: 100%;
}
h2.mainform-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
/* Input Styles */
input, textarea {
    font-family: var(--font-family);
    font-size: var(--base-font-size);
    border: 2px solid var(--border-color);
    border-radius: var(--sharp-radius);
    padding: 10px;
    width: 100%;
    margin-bottom: 10px;
    box-sizing: border-box;
    background-color: white;
    color: var(--primary-color);
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* Button Styles */
button {
    font-family: var(--font-family);
    font-size: var(--base-font-size);
    padding: 10px 20px;
    border: 2px solid var(--accent-color);
    background-color: var(--accent-color);
    color: white;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--sharp-radius);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    margin-right: 10px;
}

button:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-light);
}

/* Button Variants */
.button-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.button-primary:hover {
    background-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.button-secondary {
    background-color: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.button-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-light);
}

.button-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.button-outline:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-medium);
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.container-inner {
    padding: 20px;
    background-color: white;
    box-shadow: var(--shadow-light);
}

.flex {
    display: flex;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Column Widths */
.one-third {
    width: 33.33%;
}

.two-thirds {
    width: 66.66%;
}

.full-width {
    width: 100%;
}

/* Containers and Layouts */
.header {
    width: 100%;
    background-color: var(--primary-bg);
    padding: 20px 0;
    border-bottom: 2px solid var(--border-color);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container {
    width: 100%;
    padding: 40px 20px;
}

.card {
    background-color: white;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    margin-bottom: 20px;
    border-radius: var(--sharp-radius); /* Brutalist sharp corners */
}

.card:hover {
    box-shadow: var(--shadow-medium);
}

.card-header {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--accent-color);
}

.card-body {
    font-size: 1rem;
    color: var(--secondary-color);
}

.card-footer {
    margin-top: 15px;
    text-align: right;
    font-size: 0.875rem;
    color: var(--primary-color);
}

/* Route Tab Styles */
.tab {
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: var(--soft-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-light);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.tab:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.tab .title {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--accent-color);
}

.tab .title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.route-step {
    padding: 12px 16px;
    margin-bottom: 12px;
    background-color: var(--primary-bg);
    border-left: 4px solid var(--accent-color);
    border-radius: var(--soft-radius);
    line-height: 1.6;
    color: var(--secondary-color);
    font-size: 1rem;
}

.route-step:last-child {
    margin-bottom: 0;
}

.route-step strong,
.route-step b {
    color: var(--primary-color);
    font-weight: 600;
}

/* Tab Type Variants */
.tab.bus .title {
    border-bottom-color: #4CAF50;
}

.tab.bus .route-step {
    border-left-color: #4CAF50;
}

.tab.plane .title {
    border-bottom-color: #2196F3;
}

.tab.plane .route-step {
    border-left-color: #2196F3;
}

.tab.private-car .title {
    border-bottom-color: #FF9800;
}

.tab.private-car .route-step {
    border-left-color: #FF9800;
}

.tab.train .title {
    border-bottom-color: #9C27B0;
}

.tab.train .route-step {
    border-left-color: #9C27B0;
}

.tab.boat .title {
    border-bottom-color: #00BCD4;
}

.tab.boat .route-step {
    border-left-color: #00BCD4;
}

.tab.shared-taxi .title {
    border-bottom-color: #FFC107;
}

.tab.shared-taxi .route-step {
    border-left-color: #FFC107;
}

/* Route Page Styles */
.content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.route-content {
    margin-top: 1rem;
}

.no-route-message {
    margin-top: 1rem;
}

.back-link {
    margin-top: 2rem;
}

.back-link a {
    color: #FF6F61;
    text-decoration: none;
}

/* Header Styles */
header {
    background-color: #333;
    color: white;
    padding: 1rem 2rem;
    text-align: center;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

/* Index Page Styles */
.index-body {
    background-color: #edeae5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.index-header {
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
}

.index-header .logo img {
    max-width: 300px;
    height: auto;
}

.main-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    gap: 2rem;
    padding: 2rem;
    align-items: center;
}

.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
}

.main-page-form {
    width: 100%;
    max-width: 600px;
}

.mainform-title-large {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: bold;
    color: #333;
}

.form-group {
    margin-bottom: 2rem;
}

.location-select-button {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.5rem;
    border: 3px solid #ccc;
    border-radius: 8px;
    font-weight: 500;
    background: white;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-select-text {
    color: #999;
}

.location-select-text.selected {
    color: #333;
}

.location-select-arrow {
    font-size: 1.2rem;
}

.submit-button {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.8rem;
    font-weight: bold;
    background-color: #e47373;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #d05555;
}

/* Modal Styles */
.location-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    overflow-y: auto;
}

.modal-content-wrapper {
    background: white;
    margin: 0;
    min-height: 100%;
    padding: 2rem;
    box-sizing: border-box;
}

.modal-content-inner {
    max-width: 600px;
    margin: 0 auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 2rem;
    margin: 0;
}

.modal-close-button {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.modal-search-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}

.location-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.location-option {
    padding: 1.2rem;
    font-size: 1.3rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
    color: #333;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.location-option:hover {
    background: #e47373;
    border-color: #e47373;
    color: white;
}

/* Info Section Styles */
.info-section {
    flex: 1;
    padding: 1rem;
    min-width: 300px;
}

.problem-statement {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.intro-paragraph,
.solution-paragraph {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cta-line {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e47373;
}
