/* 모바일 우선 반응형 디자인 - MT 예약 접수폼 */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Malgun Gothic', sans-serif;
}

body {
    font-family: 'Malgun Gothic', sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #ffffff;
    padding: 0;
}

/* Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out;
}

/* Header */
.form-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.brand-logo {
    font-size: 42px;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.form-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.form-header p {
    font-size: 16px;
    opacity: 1;
    line-height: 1.4;
    color: #E8F4FD;
}

/* 리조트 구경가기 버튼 스타일 */
.resort-preview-section {
    margin-top: 25px;
}

.resort-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1e3c72;
    text-decoration: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 1px 1px 2px rgba(30, 60, 114, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: gentlePulse 3s ease-in-out infinite alternate;
}

.resort-preview-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #FFED4E 0%, #FF8C00 100%);
    animation: none; /* 호버 시 애니메이션 멈춤 */
}

.resort-preview-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 3px 10px rgba(255, 215, 0, 0.4),
        0 0 20px rgba(255, 215, 0, 0.3);
}

.btn-icon {
    font-size: 18px;
    animation: wave 2s ease-in-out infinite;
}

.btn-arrow {
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.resort-preview-btn:hover .btn-arrow {
    transform: translateX(3px);
}

@keyframes gentlePulse {
    0% {
        box-shadow: 
            0 4px 15px rgba(255, 215, 0, 0.3),
            0 0 20px rgba(255, 215, 0, 0.2);
    }
    100% {
        box-shadow: 
            0 4px 15px rgba(255, 215, 0, 0.4),
            0 0 25px rgba(255, 215, 0, 0.3);
    }
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Form Styles */
.booking-form {
    padding: 20px;
    background: white;
    border-radius: 0 0 16px 16px;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
}

.form-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}

.section-desc {
    font-size: 14px;
    color: #FFD700;
    background-color: #1e3c72;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group.required label::after {
    content: ' *';
    color: #e74c3c;
    font-weight: bold;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}

/* Input Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    border: 3px solid #cccccc;
    border-radius: 8px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 4px rgba(30, 60, 114, 0.2);
    background-color: #ffffff;
    color: #000000;
}

/* Select 드롭다운 화살표 */
select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Placeholder 텍스트 스타일 */
input::placeholder,
textarea::placeholder {
    color: #999999;
    opacity: 1;
    font-weight: 500;
    font-style: italic;
}

input::-webkit-input-placeholder {
    color: #999999;
    opacity: 1;
}

input::-moz-placeholder {
    color: #999999;
    opacity: 1;
}

input:-ms-input-placeholder {
    color: #999999;
    opacity: 1;
}

input:-moz-placeholder {
    color: #999999;
    opacity: 1;
}

/* Select의 기본 색상 설정 */
select {
    color: #000000;
    background-color: #ffffff;
}

/* 빈 값일 때는 placeholder 스타일 */
select:invalid {
    color: #000000;
    font-style: normal;
    background-color: #ffffff;
}

/* 선택이 되면 진한 검은색으로 변경 */
select:valid {
    color: #000000;
    font-style: normal;
    background-color: #ffffff;
}

/* 특별히 첫 번째 빈 옵션들을 위한 스타일링 */
select option[value=""] {
    color: #000000;
    font-style: normal;
    font-weight: normal;
    background-color: #ffffff;
}

/* Select 드롭다운 옵션들 */
select option {
    color: #000000;
    background-color: #ffffff;
    padding: 8px 12px;
    font-weight: 500;
    font-style: normal;
}

select option:first-child {
    color: #000000;
    background-color: #ffffff;
    font-style: normal;
    font-weight: normal;
}

select option:hover {
    background-color: #e9ecef;
    color: #000000;
}

/* Textarea */
textarea {
    min-height: 100px;
    resize: vertical;
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 3px solid #cccccc !important;
}

/* Info Grid (모바일에서는 1열) */
.info-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.grid-item {
    display: flex;
    flex-direction: column;
}

.grid-item label {
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 6px;
}

.grid-item input,
.grid-item select {
    padding: 12px 14px;
    font-size: 14px;
}

/* 체크박스 스타일 */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.checkbox-label:hover {
    background-color: #ffffff;
    border-color: #dee2e6;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    background: #ffffff;
    border: 2px solid #adb5bd;
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.label-text {
    font-size: 16px;
    font-weight: 500;
    color: #000000;
}

/* Additional Options */
.additional-options {
    display: grid;
    gap: 12px;
}

.option-group {
    margin: 0;
}

/* Privacy Section */
.privacy-section {
    background: white;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.privacy-section input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
}

.privacy-section label {
    font-size: 16px;
    font-weight: 700;
    color: #1e3c72;
    cursor: pointer;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Input Summary */
.input-summary {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0fff0 100%);
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.input-summary h3 {
    font-size: 18px;
    font-weight: 700;
    color: #155724;
    margin-bottom: 15px;
    text-align: center;
}

.summary-item {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #d4edda;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 700;
    color: #155724;
    min-width: 120px;
    margin-right: 10px;
}

.summary-value {
    color: #155724;
    font-weight: 500;
}

/* Edit Button */
.edit-btn {
    width: 100%;
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.edit-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Notice */
.notice {
    background: #fff9e6;
    border: 2px solid #ffcc00;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.notice p {
    font-size: 14px;
    font-weight: 600;
    color: #663d00;
    margin-bottom: 4px;
}

.notice p:last-child {
    margin-bottom: 0;
}

/* Submit Button */
.form-actions {
    margin-top: 30px;
    padding-top: 20px;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #FFFFFF;
    border: none;
    padding: 18px 32px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(30, 60, 114, 0.4),
        0 0 20px rgba(30, 60, 114, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from {
        box-shadow: 
            0 4px 15px rgba(30, 60, 114, 0.4),
            0 0 20px rgba(30, 60, 114, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    to {
        box-shadow: 
            0 4px 15px rgba(30, 60, 114, 0.6),
            0 0 30px rgba(30, 60, 114, 0.5),
            0 0 40px rgba(255, 215, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(30, 60, 114, 0.6),
        0 0 35px rgba(30, 60, 114, 0.7),
        0 0 50px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #234a87 0%, #3161b3 100%);
    animation: none; /* 호버 시 애니메이션 일시 정지 */
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 10px rgba(30, 60, 114, 0.5),
        0 0 25px rgba(30, 60, 114, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 태블릿 및 데스크톱 (768px 이상) */
@media (min-width: 768px) {
    .container {
        max-width: 800px;
        margin: 20px auto;
        border-radius: 16px;
        overflow: hidden;
    }
    
    .form-header {
        padding: 40px 30px;
    }
    
    .form-header h1 {
        font-size: 28px;
    }
    
    .booking-form {
        padding: 30px;
    }
    
    /* 태블릿에서는 2열 그리드 */
    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .additional-options {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

/* 데스크톱 (1024px 이상) */
@media (min-width: 1024px) {
    .container {
        max-width: 900px;
    }
    
    /* 데스크톱에서는 3열 그리드 */
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .form-header {
        padding: 50px 40px;
    }
    
    .booking-form {
        padding: 40px;
    }
}

/* 큰 화면 (1200px 이상) */
@media (min-width: 1200px) {
    .container {
        max-width: 1000px;
    }
}

/* 로딩 상태 */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .submit-btn {
    background: #95a5a6;
    cursor: not-allowed;
}

.loading .submit-btn::after {
    content: '처리 중...';
}

/* 에러 상태 */
.error {
    border-color: #e74c3c !important;
    background-color: #fff5f5 !important;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 6px;
    display: block;
}

/* 성공 상태 */
.success {
    border-color: #27ae60 !important;
    background-color: #f0fff4 !important;
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section {
    /* 개별 섹션 애니메이션 제거 - 전체 컨테이너에서 처리 */
}

/* 다크모드 지원 (선택사항) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
    }
    
    .container {
        background: #2c2c2c;
        color: #fff;
    }
    
    input, select, textarea {
        background-color: #3c3c3c;
        border-color: #555;
        color: #fff;
    }
    
    .checkbox-label {
        background: #3c3c3c;
        border-color: #555;
    }
}