/* Professional Home Page Styles */
.hero-gradient {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 50%, #1f2937 100%);
}

.form-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

/* Form Layout - Using demo form structure */
.form-layout-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-layout-container {
        flex-direction: row;
        align-items: stretch;
    }
}

.form-layout-primary {
    flex: 9;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-layout-secondary {
    flex: 3;
    display: flex;
    align-items: stretch;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.form-field-route {
    grid-column: span 5;
}

.form-field-arrive {
    grid-column: span 5;
}

.form-field-party {
    grid-column: span 2;
}

.form-row-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

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

.form-checkbox-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.form-checkbox-input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.value-prop {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-left: 4px solid #059669;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

@media (max-width: 767px) {
    .form-layout-container {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-field-route,
    .form-field-arrive,
    .form-field-party {
        grid-column: span 1;
    }
    
    .form-row-checkboxes {
        grid-template-columns: 1fr;
    }
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.loading-spinner-container {
    background: white;
    border-radius: 16px;
    padding: 3rem 4rem;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    max-width: 400px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

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

.loading-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.loading-subtext {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Conversational Flow Styles */
.conversation-flow {
    max-width: 600px;
    margin: 0 auto;
}

.conversation-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.conversation-step.active {
    display: block;
}

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

.conversation-question {
    text-align: center;
    margin-bottom: 2rem;
}

.question-text {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.question-hint {
    font-size: 0.875rem;
    color: #6b7280;
}

.conversation-input {
    margin-bottom: 2rem;
    position: relative;
}

.conversation-input-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.conversation-input-row > .conversation-input {
    margin-bottom: 0; /* Override default margin for inputs in a row */
}

.conversation-input-party {
    flex: 0 0 auto;
    min-width: 150px;
    margin-bottom: 0;
}

.conversation-input-party input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s;
    text-align: center;
}

.conversation-input-party input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.conversation-input-field {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s;
}

.conversation-input-field:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.conversation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-next, .btn-back, .btn-yes, .btn-no {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-next {
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
    color: white;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-back {
    background: #f3f4f6;
    color: #374151;
}

.btn-back:hover {
    background: #e5e7eb;
}

.btn-yes {
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
    color: white;
    flex: 1;
}

.btn-no {
    background: #ef4444;
    color: white;
    flex: 1;
}

.conversation-options {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.option-checkbox:hover {
    background: #f9fafb;
}

.option-checkbox input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.conversation-dialogue {
    text-align: center;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.dialogue-message {
    font-size: 1.125rem;
    color: #111827;
    margin-bottom: 1.5rem;
}

.dialogue-actions {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 0.25rem;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #f9fafb;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Django form validation messages */
.messages {
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.alert.error {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert.warning {
    background-color: #ffd;
    border: 1px solid #fc9;
    color: #963;
}

.alert.success,
.alert.info {
    background-color: #efe;
    border: 1px solid #9c9;
    color: #363;
}

/* Center party size input */
.conversation-input.centered {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.conversation-input.centered label {
    text-align: center;
    display: block;
    width: 100%;
}

.conversation-input.centered input {
    margin: 0 auto;
    display: block;
    text-align: center;
}

