/* Form styling */
.subtitle {
    font-size: 1.2rem;
    margin-top: 10px;
    opacity: 0.9;
}

.registration-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-intro {
    background: #e8eaf6;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    color: #555;
}

/* Guest accordions */
#guestList {
    margin-bottom: 30px;
}

.guest-accordion {
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.guest-accordion:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.guest-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #f8f9fa;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.guest-accordion-header:hover {
    background: #e8eaf6;
}

.guest-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.guest-number {
    color: #667eea;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.guest-name-preview {
    color: #555;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guest-status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
}

.status-icon {
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.guest-status-indicator[data-status="incomplete"] .status-icon {
    color: #ccc;
}

.guest-status-indicator[data-status="incomplete"] .checkmark {
    opacity: 0;
}

.guest-status-indicator[data-status="complete"] .status-icon {
    color: #27ae60;
}

.guest-status-indicator[data-status="complete"] .checkmark {
    opacity: 1;
}

.status-label {
    font-size: 0.75rem;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guest-status-indicator[data-status="complete"] .status-label {
    color: #27ae60;
}

.guest-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.btn-remove-small {
    background: #fff;
    border: 1.5px solid #e74c3c;
    color: #e74c3c;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-remove-small svg {
    flex-shrink: 0;
}

.btn-remove-small:hover {
    background: #e74c3c;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.accordion-toggle {
    display: flex;
    align-items: center;
    color: #667eea;
    transition: transform 0.3s ease;
}

.guest-accordion.expanded .accordion-toggle {
    transform: rotate(180deg);
}

.guest-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.guest-accordion.expanded .guest-accordion-content {
    max-height: 600px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input.error {
    border-color: #e74c3c;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
}

.field-hint {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
    font-style: italic;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-remove,
.btn-link {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-remove {
    background: #e74c3c;
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-remove:hover {
    background: #c0392b;
}

.btn-link {
    background: transparent;
    color: #667eea;
    padding: 12px 20px;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Form actions */
.form-actions {
    text-align: center;
    margin-bottom: 30px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.form-submit .btn-primary {
    margin-right: 10px;
}

/* Cancel section */
.cancel-section {
    margin-top: 40px;
    padding: 20px;
    background: #fff5f5;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e74c3c;
}

.cancel-text {
    color: #666;
    margin-bottom: 15px;
}

/* Success/Info message boxes */
.success-message-box,
.info-message-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

.success-icon,
.info-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-icon {
    color: #27ae60;
    background: #d4edda;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.info-icon {
    color: #3498db;
    background: #d1ecf1;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.success-message-box h2,
.info-message-box h2 {
    color: #333;
    margin-bottom: 20px;
}

.info-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    line-height: 1.8;
}

.info-box p {
    margin-bottom: 10px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.action-buttons {
    margin-top: 30px;
}

.action-buttons .btn-primary,
.action-buttons .btn-secondary {
    margin: 5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .guest-accordion-header {
        padding: 15px;
    }

    .guest-header-left {
        gap: 8px;
    }

    .guest-number {
        font-size: 1rem;
    }

    .guest-name-preview {
        font-size: 0.9rem;
    }

    .guest-accordion.expanded .guest-accordion-content {
        padding: 15px;
    }

    .form-group input {
        padding: 10px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-danger {
        width: 100%;
        margin-bottom: 10px;
    }

    .form-submit .btn-primary {
        margin-right: 0;
    }

    .action-buttons .btn-primary,
    .action-buttons .btn-secondary {
        width: 100%;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .form-intro {
        padding: 15px;
        font-size: 0.95rem;
    }

    .guest-accordion {
        margin-bottom: 12px;
    }

    .guest-accordion-header {
        padding: 12px;
    }

    .guest-number {
        font-size: 0.95rem;
    }

    .guest-name-preview {
        font-size: 0.85rem;
    }

    .guest-header-left {
        gap: 6px;
    }

    .status-icon {
        width: 18px;
        height: 18px;
    }

    .status-label {
        display: none; /* Hide status label on very small screens */
    }

    .btn-remove-small {
        padding: 6px 8px;
        font-size: 0.8rem;
        gap: 4px;
    }

    .btn-remove-small svg {
        width: 14px;
        height: 14px;
    }

    .guest-accordion.expanded .guest-accordion-content {
        padding: 12px;
    }

    .success-icon,
    .info-icon {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }
}
