/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f3f4f6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
    color: #333;
}

/* Main container */
.main-container {
    width: 100%;
    max-width: 500px;
    background: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Main title */
.main-title {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 8px;
}

/* Sections */
.section {
    padding: 16px;
    background-color: #eff6ff;
    border-radius: 8px;
    border: 1px solid #dbeafe;
}

.section-label {
    font-weight: 500;
    color: #1e40af;
    display: block;
    margin-bottom: 8px;
}

/* Guest Counter Styles */
.guest-counter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.guest-counter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guest-count-display {
    font-size: 20px;
    font-weight: bold;
    color: #1e40af;
    min-width: 30px;
    text-align: center;
}

.guest-names-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guest-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.guest-label {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

/* Input styles */
.name-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.name-input:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.name-input::placeholder {
    color: #9ca3af;
}

/* Checkbox styles */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
}

.checkbox {
    width: 20px;
    height: 20px;
    accent-color: #0d9488;
    cursor: pointer;
}

.checkbox-text {
    font-size: 18px;
    color: #374151;
    font-weight: 600;
}

/* Form containers */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-description {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.counters-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Item counter styles */
.item-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background-color: #f9fafb;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.item-name {
    font-size: 18px;
    font-weight: 500;
    color: #374151;
    width: 40%;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.counter-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000000;
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.counter-button:hover:not(:disabled) {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.counter-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-display {
    font-size: 24px;
    font-weight: bold;
    color: #111827;
    width: 32px;
    text-align: center;
}

/* Submit section */
.submit-section {
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.submit-button {
    width: 100%;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background-color: #454545;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.submit-button:hover:not(:disabled) {
    background-color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.submit-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Message box */
.message-box {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
}

.message-box.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

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

.message-box.warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Responsive design */
@media (max-width: 640px) {
    body {
        padding: 12px;
    }

    .main-container {
        padding: 24px;
        gap: 20px;
    }

    .main-title {
        font-size: 24px;
    }

    .guest-counter-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .item-counter {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .item-name {
        width: 100%;
    }

    .checkbox-text {
        font-size: 16px;
    }

    .section {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 20px;
    }

    .main-title {
        font-size: 22px;
    }

    .counter-controls {
        width: 100%;
        justify-content: center;
    }
}
