/* Custom styles to enhance the form appearance */
.date-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: box-shadow 0.2s;
}

.date-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.date-card.selected {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px #6366f1;
    background-color: #eef2ff;
}

.activity-group {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    background-color: white;
    margin-bottom: 1.5rem;
}

.activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.activity-date {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.activity-timing {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.timing-before {
    background-color: #fef3c7;
    color: #92400e;
}

.timing-during {
    background-color: #d1fae5;
    color: #065f46;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.activity-checkbox {
    height: 1.25rem;
    width: 1.25rem;
    color: #6366f1;
    border-radius: 0.25rem;
    border-color: #d1d5db;
    margin-top: 0.125rem;
}

.activity-checkbox:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.activity-label {
    color: #374151;
    font-size: 0.875rem;
}

/* Form elements styling */
input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

button[type="submit"] {
    width: 100%;
    background-color: #4f46e5;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

button[type="submit"]:hover {
    background-color: #4338ca;
}

button[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5);
}

/* Animation classes */
.fade-enter {
    opacity: 0;
    transform: translateY(10px);
}

.fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 300ms, transform 300ms;
}

.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 300ms;
}

/* Spacing utilities */
.mb-8 {
    margin-bottom: 2rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .date-card {
        font-size: 0.875rem;
    }
    
    .activity-group {
        padding: 1rem;
    }
    
    .activity-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .activity-header > * + * {
        margin-top: 0.5rem;
    }
}

/* Grid layout for dates */
#datesContainer {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    #datesContainer {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    #datesContainer {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Main container styles */
.min-h-screen {
    min-height: 100vh;
}

.max-w-4xl {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

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

.hidden {
    display: none;
}

/* Form container */
#registrationForm {
    background-color: rgb(249, 246, 246);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    #registrationForm {
        padding: 2rem;
    }
}

/* Header styles */
h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.header-description {
    color: #4b5563;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* Feedback message styles */
.feedback-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.375rem;
    text-align: center;
    display: block;
}

.feedback-message.hidden {
    display: none;
}

.feedback-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

.feedback-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}