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

body {
    font-family: 'Arial', sans-serif;
    background: #f7f7f7;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Parent container for responsiveness */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

/* Step containers */
.step {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

.step.active {
    display: flex;
}

h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    margin-bottom: 30px;
}

.big-button, .medium-button {
    text-align: center;
    width: 100%;
    max-width: 500px;
    padding: 15px;
    margin: 10px 0;
    font-size: 1.2rem;
    border: none;
    border-radius: 10px;
    background: #333;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Added focus states */
.big-button:focus, .medium-button:focus {
    outline: 3px solid #4d90fe;  /* Blue outline on focus */
}

.big-button:hover, .medium-button:hover {
    background: #444;
    transform: scale(1.05);
}

.scrollable-list {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.class-group {
    text-align: center;
}

.class-group h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #444;
}

.class-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.class-buttons button {
    width: 45%;
    padding: 10px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background: #555;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.class-buttons button:hover {
    background: #666;
}

.class-buttons-smaller {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.class-buttons-smaller button {
    width: 30%;
    padding: 10px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background: #555;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.class-buttons-smaller button:hover {
    background: #666;
}

/* Adjusted form details styling */
.form-details {
    width: 100%;
    max-width: 400px;
}

.form-details .input-group {
    margin: 10px 0;
}

.form-details .input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-details .input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Price display */
.price-display {
    font-size: 1.2rem;
    margin-top: 15px;
    font-weight: bold;
}

.submit-button {
    width: 100%;
    max-width: 400px;
    padding: 20px 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    font-size: 1.2rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.submit-button:hover {
    background: #444;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Popup overlay styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
}

.popup .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    color: #333;
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
}

.popup.active {
    visibility: visible;
    opacity: 1;
}

/* Popup content styles */
.popup-content {
    width: 90%;
    max-width: 400px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.popup-content h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #333;
}

.popup-info {
    margin-bottom: 20px;
    text-align: left;
}

.popup-info p {
    font-size: 1.2rem;
    margin: 5px 0;
    color: #555;
}

.popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.popup-button {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.popup-button.confirm {
    background: #333;
    color: #fff;
}

.popup-button.cancel {
    background: #f44336;
    color: #fff;
}

.popup-button:hover {
    transform: scale(1.05);
}

.popup-button.confirm:hover {
    background: #444;
}

.popup-button.cancel:hover {
    background: #d32f2f;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .big-button, .medium-button {
        height: 50px;
        font-size: 1rem;
    }

    .class-buttons button {
        padding: 8px;
        font-size: 0.9rem;
    }
    .class-buttons-smaller button {
        padding: 8px;
        font-size: 0.9rem;
    }

    .scrollable-list {
        max-height: 50%;
    }

    .price-display {
        font-size: 1.2rem;
    }

    .submit-button {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* Dropdown Menu */
.web-dropdown-menu {
    position: absolute;
    top: 20px;
    right: 20px;
}

.web-dropdown-button {
    background-color: #333;
    color: white;
    border: none;
    min-width: 160px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.web-dropdown-button:hover {
    background-color: #555;
    transform: scale(1.05);
}

.web-dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    right: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.web-dropdown-content a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 10px 16px;
}

.web-dropdown-content a:hover {
    background-color: #eee;
}

.web-dropdown-menu:hover .web-dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Added JavaScript trigger for dropdown */
.web-dropdown-menu.active .web-dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}