/* assets/css/style.css */
/* General Body & Typography */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 120px; /* Space for the fixed footer */
}

/* Header & Banner */
.event-header {
    line-height: 0; /* Removes extra space below the image */
}

.event-banner {
    width: 100%;
    height: auto;
    display: block;
}

/* Call to Action Section */
.cta-section {
    text-align: center;
    padding: 40px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
}

.cta-section h1 {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
}

.cta-section p {
    font-size: 1.2rem;
    margin-top: 10px;
    color: #555;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.cta-button, .submit-button, .secondary-button {
    padding: 14px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button {
    background-color: #e67e22;
    color: white;
    margin-top: 25px;
}

.cta-button:hover {
    background-color: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.submit-button {
    background-color: #27ae60;
    color: white;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-button:hover {
    background-color: #229954;
}

.submit-button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    opacity: 0.7;
}

.submit-button .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

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


.secondary-button {
    background-color: #3498db;
    color: white;
}

.secondary-button:hover {
    background-color: #2980b9;
}

/* Registration Form Section */
.registration-section {
    padding: 40px;
    display: none; /* Initially hidden */
}

.registration-section.visible {
    display: block;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

form fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    background-color: #fcfcfc;
}

form legend {
    padding: 0 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #34495e;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

/* Styles for the duplicate check error message */
.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    display: block;
    margin-top: 5px;
    height: 1em; /* Reserve space to prevent layout shift */
}


.radio-group label {
    display: inline-block;
    margin-right: 25px;
    font-weight: normal;
    cursor: pointer;
}

#guests-container .guest-block {
    border: 1px dashed #ccc;
    padding: 20px;
    margin-top: 20px;
    border-radius: 5px;
    background-color: #fafafa;
}

/* Agenda Styles */
#agenda-section {
    margin-top: 20px;
}

.agenda-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #3498db;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.agenda-card h3 {
    margin-top: 0;
    color: #2c3e50;
    padding-bottom: 10px;
    font-size: 1.1rem;
}

.agenda-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agenda-card li {
    padding: 10px 0;
    border-bottom: 1px dotted #ced4da;
    display: flex;
    align-items: center;
}

.agenda-card li:last-child {
    border-bottom: none;
}

.agenda-card li strong {
    color: #e67e22;
    min-width: 90px;
    display: inline-block;
    font-weight: 700;
}

/* Footer */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
    z-index: 1000;
}

.site-footer p {
    margin: 5px 0;
}

.site-footer a {
    color: #3498db;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Messages */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-size: 1.1rem;
}
.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cta-section h1 {
        font-size: 2.2rem;
    }
    .cta-section p {
        font-size: 1.1rem;
    }
    .registration-section {
        padding: 20px;
    }
}
