/* Bounce House Registration Page Styles */

/* Hero Section */
.bounce-hero {
    background: var(--gradient);
    padding: 100px 20px 60px;
    text-align: center;
    color: var(--text-light);
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Registration Form */
.registration-section {
    padding: 60px 0 80px;
    background: var(--white);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.form-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-dark);
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Children Section */
.children-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.child-count-info {
    font-size: 0.95rem;
    color: #666;
}

.children-container {
    margin-bottom: 1.5rem;
}

.child-card {
    background: var(--bg-light);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

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

.child-number {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.remove-child {
    background: none;
    border: none;
    color: var(--error-color, #dc3545);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.remove-child:hover {
    background: rgba(220, 53, 69, 0.1);
}

.child-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.child-actions {
    text-align: center;
    margin-top: 1rem;
}

/* Signature Section */
.signature-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.signature-canvas-container {
    position: relative;
    margin: 1rem 0;
}

.signature-canvas {
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: crosshair;
    width: 100%;
    height: 200px;
    touch-action: none;
}

.signature-canvas.signed {
    border-color: var(--primary-color);
}

.signature-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.signature-type-toggle {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.signature-type-toggle label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.signature-type-toggle input[type='radio'] {
    margin: 0;
}

.signature-type-toggle input[type='radio']:checked + span {
    font-weight: 600;
}

.signature-type-toggle label:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(208, 167, 100, 0.1);
}

.typed-signature-input {
    display: none;
    margin-top: 1rem;
}

.typed-signature-input input {
    font-family: 'Brush Script MT', cursive;
    font-size: 2rem;
    text-align: center;
    padding: 1rem;
}

/* Terms Checkbox */
.terms-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.terms-group input[type='checkbox'] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.terms-label {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.terms-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.form-note {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    background: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: #6c757d;
    color: var(--text-light);
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #d4edda;
    color: #155724;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.error-icon {
    width: 60px;
    height: 60px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    text-align: center;
}

/* Pricing Information Section */
.pricing-info-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-notice {
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notice-text {
    flex: 1;
    color: #1e40af;
    line-height: 1.6;
}

.notice-text strong {
    color: #1e3a8a;
    font-weight: 600;
}

.pricing-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pricing-table {
    width: 100%;
    background: var(--white);
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
}

.pricing-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.pricing-table th {
    padding: 1.25rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--white);
}

.pricing-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.pricing-table tbody tr:last-child {
    border-bottom: none;
}

.pricing-table tbody tr:hover {
    background: #f9fafb;
}

.pricing-table td {
    padding: 1.25rem;
    text-align: center;
    font-size: 1.05rem;
}

.row-label {
    font-weight: 600;
    color: var(--primary-color);
    background: #fef3e7;
    font-size: 1.1rem;
}

.price-cell {
    font-weight: 600;
    color: var(--text-dark);
}

.color-legend {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.legend-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.legend-items {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.color-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-box.red {
    background: #ef4444;
}

.color-box.orange {
    background: #f97316;
}

.color-box.green {
    background: #10b981;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .child-fields {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .signature-canvas {
        height: 150px;
    }

    .signature-controls {
        flex-direction: column;
    }

    .children-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .pricing-info-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .pricing-notice {
        padding: 1rem;
        flex-direction: column;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.95rem;
    }

    .legend-items {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .bounce-hero {
        padding: 80px 20px 40px;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .form-container {
        padding: 1.5rem 1rem;
    }

    .child-card {
        padding: 1rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.85rem;
    }

    .color-box {
        width: 30px;
        height: 30px;
    }
}
