* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ski-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.header h1 {
    font-size: 2.5rem;
    color: #1e40af;
    font-weight: bold;
}

.subtitle {
    font-size: 1.25rem;
    color: #6b7280;
}

.form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-card {
    padding: 30px;
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-description {
    color: #6b7280;
    font-size: 0.95rem;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 20px;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.95rem;
    cursor: pointer;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.radio-label:hover {
    background-color: #f9fafb;
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
}

.note {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 8px;
    font-style: italic;
}

.ticket-type-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fafafa;
}

.ticket-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ticket-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

.ticket-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2563eb;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-control label {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

.quantity-control input[type="number"] {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
}

.companion-info {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: #f9fafb;
}

.companion-info h4 {
    margin-bottom: 15px;
    color: #1f2937;
    font-size: 1.125rem;
}

.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input[type="file"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    background: #fafafa;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: #3b82f6;
    background: #f0f8ff;
}

.separator {
    height: 1px;
    background: #e5e7eb;
    margin: 30px 0;
}

.price-display {
    background: #eff6ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.price-amount {
    font-size: 1.75rem;
    font-weight: bold;
    color: #2563eb;
}

.discount-notice {
    margin-top: 8px;
    font-size: 0.875rem;
    color: #059669;
    font-weight: 500;
}

.submit-button {
    width: 100%;
    background: #2563eb;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-button:hover {
    background: #1d4ed8;
}

.submit-button:active {
    transform: translateY(1px);
}

.footer {
    text-align: center;
    margin-top: 30px;
    color: #6b7280;
    font-size: 0.875rem;
}

.footer p {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-card {
        padding: 20px;
    }
    
    .price-amount {
        font-size: 1.5rem;
    }
}

.success-message {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.error-message {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

/* Confirmation screen styles */
.confirmation-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.confirmation-section h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 8px;
}

.confirmation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.confirmation-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.confirmation-item label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.confirmation-item span {
    color: #1f2937;
    font-size: 1rem;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.pricing-table {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.pricing-row:last-child {
    border-bottom: none;
}

.ticket-type {
    font-weight: 500;
    color: #1f2937;
    flex: 1;
}

.unit-price {
    color: #6b7280;
    font-size: 0.95rem;
    width: 100px;
    text-align: right;
}

.quantity {
    color: #6b7280;
    font-size: 0.95rem;
    width: 80px;
    text-align: center;
}

.subtotal {
    font-weight: 600;
    color: #2563eb;
    width: 120px;
    text-align: right;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 0 0;
    margin-top: 15px;
    border-top: 2px solid #e5e7eb;
}

.total-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
}

.remarks-content {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    white-space: pre-wrap;
    font-family: inherit;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

@media (max-width: 768px) {
    .confirmation-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .unit-price, .quantity, .subtotal {
        width: auto;
        text-align: left;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
