@charset "utf-8";

/* =========================================
   Re-usable Variables
   ========================================= */
:root {
    --primary-pink: #ff86bd;
    --dark-pink: #d16f88;
    --light-pink: #fff0f5;
    --text-color: #333;
    --error-color: #e74c3c;
    --overlay-bg: rgba(0, 0, 0, 0.6);
}

/* =========================================
   Floating Action Button (FAB)
   ========================================= */
#reservation-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* Remove default link styles */
    color: white;
}

#reservation-fab:hover {
    transform: scale(1.05);
}

.fab-container {
    /* Gradient matches the reference: Soft Pink to Darker Pink */
    background: linear-gradient(135deg, #ff9eb3 0%, #ff75a0 100%);
    color: white;

    /* Increased size for better visibility */
    width: 150px;
    height: 150px;
    border-radius: 50%;

    /* Base shadow (overridden by animation) */
    box-shadow: 0 6px 20px rgba(255, 117, 160, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.3);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    /* Font adjustments */
    font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    font-weight: bold;
    padding: 0;
    box-sizing: border-box;

    /* Breathing glow animation */
    animation: fabBreathe 3s ease-in-out infinite;
}

/* Soft Breathing Glow */
@keyframes fabBreathe {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(255, 117, 160, 0.5),
            0 0 0 4px rgba(255, 255, 255, 0.3);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 30px rgba(255, 117, 160, 0.7),
            0 0 0 6px rgba(255, 255, 255, 0.5);
    }
}

/* Accessibility: disable animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fab-container {
        animation: none;
    }
}

.fab-icon {
    font-size: 32px;
    /* Larger icon */
    margin-top: 6px;
    line-height: 1;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.fab-text {
    font-size: 19px;
    /* Larger, readable text */
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* =========================================
   Modal Overlay & Animation
   ========================================= */
#reservation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#reservation-overlay.active {
    opacity: 1;
    visibility: visible;
}

.reservation-modal {
    background: #fff;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
    font-family: "游明朝", YuMincho, "Hiragino Mincho ProN", serif;
}

#reservation-overlay.active .reservation-modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    z-index: 10;
    background: none;
    border: none;
}

/* =========================================
   Form Layout
   ========================================= */
.modal-header {
    background: var(--light-pink);
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid var(--primary-pink);
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    color: var(--dark-pink);
    margin: 0;
    font-size: 1.2rem;
}

.modal-body {
    padding: 20px;
}

.form-step {
    display: none;
    animation: fadeIn 0.4s;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.95rem;
}

.form-note {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 15px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
}

.required::after {
    content: " ※必須";
    color: var(--error-color);
    font-size: 0.8em;
}

/* Inputs */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    /* Prevents zoom on iPhone */
    box-sizing: border-box;
}

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

/* Radio Cards (Visitor Type) */
.radio-cards {
    display: flex;
    gap: 15px;
}

.radio-card-label {
    flex: 1;
    cursor: pointer;
}

.radio-card-input {
    display: none;
}

.radio-card-content {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.2s;
}

.radio-card-input:checked+.radio-card-content {
    border-color: var(--primary-pink);
    background: var(--light-pink);
    color: var(--dark-pink);
    font-weight: bold;
}

/* Checkboxes */
.checkbox-group label {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
    font-weight: normal;
    cursor: pointer;
}

/* Buttons */
.btn-submit {
    width: 100%;
    background: var(--primary-pink);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-submit:hover {
    background: var(--dark-pink);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Success Message */

/* Success Message */
.success-message {
    text-align: center;
    color: #27ae60;
    padding: 30px;
    /* Robustness fixes */
    width: 100%;
    height: auto;
    min-height: 200px;
    background-color: #fff;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.success-icon {
    font-size: 50px;
    line-height: 1;
    margin-bottom: 20px;
    display: block;
}

.success-message h3 {
    font-size: 1.5rem;
    color: #27ae60;
    margin-bottom: 15px;
    font-weight: bold;
    display: block;
}

.success-message p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
    display: block;
}

/* =========================================
   Mobile Specific Adjustments
   ========================================= */
@media (max-width: 640px) {
    #reservation-fab {
        bottom: 90px;
        /* High enough to clear the footer */
        right: 20px;
    }

    .fab-container {
        /* Slightly smaller on mobile but still readable */
        width: 135px;
        height: 135px;
    }

    .fab-icon {
        font-size: 34px;
        /* Larger icon */
        margin-top: 6px;
        line-height: 1;
    }

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

    .reservation-modal {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .radio-cards {
        flex-direction: column;
    }
}