/* Basic Reset */


/* Form Container */
form {
    max-width: 800px; /* Adjusted to prevent full-width stretching */
    margin: 40px auto; /* Centered with vertical margin */
    background: #ffffff;
    padding: 30px 60px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Form Steps */
.form-step {
    display: none;
}

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

/* Headings */
h2 {
    margin-bottom: 10px;
    color: #333333;
    font-size: 1.8em;
    font-weight: bold;
    text-align: left;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.subtitle {
    margin-bottom: 20px;
    color: #666666;
    font-size: 1em;
    text-align: left;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Required Asterisk */
.required {
    color: red;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: #333333;
    font-size: 1em;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Input Fields */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 350px; /* Ensures consistent width */
    height: 45px;
    padding: 10px 12px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333333;
}

.form-group textarea {
    height: auto;
    resize: vertical;
    padding: 10px 12px;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: #aaaaaa;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Dropdown Arrow */
.form-group select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="7"><path fill="none" stroke="%23333333" stroke-width="1.5" d="M1 1l4 4 4-4"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 7px;
    padding-right: 30px;
    background-color: #ffffff;
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-direction: column;
}

.radio-label {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    color: #333333;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.radio-label input {
    margin-right: 10px;
    accent-color: #333333;
}

/* Conditional Sections */
.conditional-section {
    display: none;
}

.conditional-section.active {
    display: block;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.next-button,
.prev-button,
.submit-button {
    padding: 12px 25px;
    border: none;
    background-color: #001f3f; /* Navy blue */
    color: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.prev-button {
    background-color: #0056b3; /* Darker blue for Previous */
}

.submit-button {
    background-color: #001f3f; /* Navy blue */
}

.next-button:hover,
.prev-button:hover,
.submit-button:hover {
    background-color: #004080; /* Lighter blue on hover */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Remove Passenger Button */
.remove-button {
    padding: 10px 20px;
    border: none;
    background-color: #dc3545; /* Red */
    color: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin-bottom: 20px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.remove-button:hover {
    background-color: #c82333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.remove-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Notes Section */
.notes {
    background-color: #fff3cd;
    padding: 15px;
    border: 1px solid #ffeeba;
    border-radius: 5px;
    margin-bottom: 20px;
}

.notes p {
    margin-bottom: 10px;
    color: #856404;
    font-size: 0.9em;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Input Error Styling */
.input-error {
    border-color: red;
    background-color: #ffe6e6;
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 20px;
    border: 1px solid #888888;
    width: 90%;
    max-width: 500px; /* Responsive */
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: animatetop 0.4s;
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

/* Close Button Styling */
.close-button {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000000;
    text-decoration: none;
}

.modal-content h2 {
    margin-bottom: 15px;
    color: #dc3545; /* Red */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.modal-content p {
    color: #333333;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Disable background scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Success Container */
.success-container {
    max-width: 600px;
    margin: 100px auto;
    text-align: center;
    padding: 40px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
}

.success-container h1 {
    color: #155724;
    margin-bottom: 20px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.success-container p {
    color: #155724;
    font-size: 1.1em;
    margin-bottom: 30px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.success-container a {
    display: inline-block;
    padding: 12px 25px;
    background-color: #28a745; /* Green */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.success-container a:hover {
    background-color: #218838;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}







/* Responsive Design */
@media (max-width: 600px) {
    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .next-button,
    .prev-button,
    .submit-button {
        width: 100%;
    }

    .radio-group {
        flex-direction: column;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="date"],
    .form-group input[type="number"],
    .form-group select,
    .form-group textarea {
        max-width: 100%;
    }

    .modal-content {
        width: 95%;
    }
}
