/* General body styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #8B5A2B;    
    margin: 0;
    padding: 0;
}

/* Header styling */
header {
    background-color: #5A3E36; /* Dark brown background */
    color: #FFFDD0; /* Light cream text */
    padding: 10px 20px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: start; /* Align items to the left */
    gap: 10px; /* Space between logo and text */
}

.logo {
    height: 50px; /* Adjust height of the logo */
}

header h1 {
    font-size: 24px; /* Adjust font size */
    margin: 0; /* Remove default margin */
    font-weight: bold; /* Make the text bold */
    color: #FFFDD0; /* Ensure text color matches the header color scheme */
}

/* Container styling */
.container {
    max-width: 600px;
    margin: 20px auto;
    background: #FFFDD0; 
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 10px;
    }

    header h1 {
        font-size: 20px;
    }

    .container {
        margin: 10px;
        padding: 15px;
    }

    input, select, button {
        font-size: 14px;
    }

    button {
        font-size: 16px;
    }

    .note {
        font-size: 12px;
    }

    .qr-code {
        width: 80px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 18px;
    }

    .container {
        padding: 10px;
    }

    input, select, button {
        font-size: 12px;
    }

    button {
        font-size: 14px;
    }

    .note {
        font-size: 10px;
    }

    .qr-code {
        width: 60px;
    }
}

/* Remaining styles untouched */
h1 {
    text-align: center;
    color: #5A3E36;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: #5A3E36;
}

.radio-options label {
    display: inline-block;
    margin-right: 20px;
    font-weight: normal;
    color: #5A3E36;
}

input, select, button {
    width: 100%;
    padding: 10px;
    margin: 5px 0 20px;
    border: 1px solid #D2B48C;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

button {
    background-color: #8B5A2B;
    color: #FFF;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #5A3E36;
}

footer {
    text-align: center;
    margin-top: 20px;
    color: #FFFDD0;
    font-size: 14px;
    padding: 20px;
    background-color: #5A3E36; /* Dark brown background */
    border-top: 2px solid #8B5A2B; /* Add a subtle border */
    font-family: 'Arial', sans-serif;
}

footer p {
    margin: 8px 0; /* Spacing between lines */
    line-height: 1.6;
}

.highlight {
    color: #FFD700; /* Gold color for emphasis */
    font-weight: bold;
}

footer p:last-child {
    font-style: italic; /* Italicize the last line for a stylish touch */
    font-size: 13px;
    opacity: 0.9; /* Slightly transparent for a modern look */
}

.note {
    font-size: 14px;
    color: #5A3E36;
    font-style: italic;
}

.qr-code {
    display: block;
    margin: 10px auto;
    width: 100px;
}

#otherOccasionField {
    margin-top: 10px;
}

#otherOccasion {
    width: 100%;
    padding: 10px;
    margin: 5px 0 20px;
    border: 1px solid #D2B48C;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

 /* Loader Overlay */
        .loader-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            display: none; /* Initially hidden */
        }

        /* Loader Animation */
        .loader {
            width: 50px;
            height: 50px;
            border: 5px solid #ddd;
            border-top: 5px solid #3498db;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
