/* General styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

header {
    background-color: #f0f0f0; /* Light gray background */
    text-align: center;
    height: 40px; /* Set header height to 40px */
    padding: 5px;
}

header .logo {
    height: 100%; /* Logo takes 100% of header height */
}

main {
    text-align: center;
    padding: 50px 20px;
}

.content h2 {
    font-size: 20px; /* Mobile default */
    line-height: 1.4;
    margin-bottom: 20px;
}

.content .highlight {
    color: blue;
}

.content p {
    font-size: 11px; /* Mobile default */
    color: #333;
    max-width: 600px;
    margin: 0 auto 30px;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a shadow to make it pop */
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
    margin-top: 20px; /* Margin above the button */
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

button:active {
    transform: scale(1);
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.whale-image {
    height: 220px;
    margin-top: 40px; /* Added more margin to ensure space between button and whale image */
}

/* Enhanced Popup Styles */
.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Darker background */
    backdrop-filter: blur(4px); /* Blur effect */
}

.popup-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px; /* Softer corners */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Soft shadow */
    width: 80%;
    max-width: 400px;
    text-align: left;
    position: relative;
    animation: fadeIn 0.3s ease-in-out; /* Smooth fade-in effect */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#closePopup {
    color: #333;
    float: right;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

#closePopup:hover {
    color: red;
}

/* Input Fields */
.popup-content label {
    font-size: 16px;
    margin-bottom: 8px;
    display: block;
}

.popup-content input,
.popup-content select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.popup-content input:focus,
.popup-content select:focus {
    border-color: #007bff;
    outline: none;
}

/* Button Styles */
.popup-content button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.popup-content button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.popup-content button:active {
    transform: scale(1);
}

/* Loading Bar Animation */
.loading-bar {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 10px;
    overflow: hidden;
    height: 20px;
    margin-top: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.loading-fill {
    background-color: #007bff;
    height: 100%;
    width: 0;
    transition: width 15s linear; /* Smooth 15-second fill */
    border-radius: 10px 0 0 10px;
}

/* Hide form steps initially */
.form-step {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.form-step.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .content h2 {
        font-size: 50px;
        padding: 0 100px;
    }

    .content p {
        font-size: 21px;
    }

    .whale-image {
        height: 400px;
        margin-top: 50px; /* Larger margin for desktop */
    }
}
