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

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.container {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page {
    display: none;
    animation: slideIn 0.3s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-content {
    padding: 30px 25px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

h3 {
    font-size: 18px;
    color: #555;
    margin-bottom: 10px;
}

h4 {
    font-size: 16px;
    color: #667eea;
    margin-bottom: 8px;
}

p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 15px;
}

/* Notice Box */
.notice-box {
    background: #f5f7ff;
    border-left: 4px solid #667eea;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.notice-box p {
    margin-bottom: 10px;
    font-size: 14px;
}

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

/* Channel Options */
.channel-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.channel-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.channel-btn:hover {
    border-color: #667eea;
    background: #f5f7ff;
    transform: translateX(5px);
}

.channel-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.channel-desc {
    font-size: 13px;
    color: #999;
}

/* Service List */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.service-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 3px solid #764ba2;
}

.service-item p {
    margin-bottom: 5px;
}

.price {
    font-size: 16px;
    font-weight: 600;
    color: #764ba2;
    margin-bottom: 8px !important;
}

/* Form Styles */
.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Radio and Checkbox */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label,
label[type="checkbox"] {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 0;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* Buttons */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    margin-right: 10px;
}

.btn:last-child {
    margin-right: 0;
}

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

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

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

form .btn {
    width: 100%;
    margin-top: 20px;
}

/* Success Page */
.success-content {
    text-align: center;
    justify-content: center;
}

.success-content h2 {
    border: none;
    font-size: 32px;
    color: #4caf50;
    margin-bottom: 20px;
}

.success-details {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.success-details p {
    color: #2e7d32;
    margin-bottom: 10px;
}

.success-details p:last-child {
    margin-bottom: 0;
}

/* Example Hint Box */
.example-hint {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 12px;
    border-radius: 6px;
    margin: 12px 0;
    font-size: 13px;
}

.example-hint strong {
    color: #ff9800;
    display: block;
    margin-bottom: 8px;
}

.example-hint p {
    color: #795548;
    font-size: 12px;
    margin-bottom: 6px;
    line-height: 1.5;
}

.example-hint p:last-child {
    margin-bottom: 0;
}

/* Thank You Box */
.thank-you-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.thank-you-box p {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 15px;
}

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

/* Receipt Page */
.receipt-container {
    background: white;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    margin: 20px auto;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px dashed #667eea;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.receipt-header h2 {
    border: none;
    font-size: 24px;
    color: #667eea;
    margin-bottom: 10px;
}

.receipt-header p {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.receipt-content {
    margin: 20px 0;
}

.receipt-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 15px 0;
    padding: 10px;
    background: #f5f7ff;
    border-radius: 6px;
    text-align: center;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.receipt-item.small {
    font-size: 12px;
}

.receipt-label {
    font-weight: 600;
    color: #333;
}

.receipt-value {
    color: #666;
    text-align: right;
    flex: 1;
    margin-left: 10px;
}

.receipt-item.total {
    border-top: 2px solid #667eea;
    border-bottom: 2px solid #667eea;
    padding: 15px 0;
    font-weight: 600;
    font-size: 16px;
}

.receipt-item.total .receipt-label {
    color: #764ba2;
}

.total-price {
    color: #764ba2 !important;
    font-weight: 600;
    font-size: 18px;
}

.receipt-divider {
    border-top: 2px dashed #667eea;
    margin: 15px 0;
}

.receipt-container .btn {
    width: 100%;
    margin-top: 15px;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .container {
        max-width: 100%;
        box-shadow: none;
        border: none;
    }

    .page {
        display: none !important;
    }

    .page.active {
        display: block !important;
        animation: none;
    }

    .receipt-container {
        border: 1px solid #000;
        margin: 0;
        padding: 20px;
    }

    .btn {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        border-radius: 0;
        max-width: 100%;
        min-height: 100vh;
    }

    .page-content {
        min-height: auto;
        padding: 20px 15px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 18px;
    }

    .btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .notice-box {
        padding: 12px;
    }

    .notice-box p {
        font-size: 13px;
    }

    p {
        font-size: 14px;
    }
}

@media (max-height: 600px) {
    .page-content {
        min-height: auto;
    }

    h1 {
        margin-bottom: 5px;
    }

    h2 {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    p {
        margin-bottom: 8px;
        font-size: 14px;
    }

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

    label {
        margin-bottom: 5px;
        font-size: 13px;
    }

    input, select, textarea {
        padding: 10px;
        font-size: 13px;
    }
}
