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

body {
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
    background: #f5f5f5;
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: transparent;
    min-height: 100vh;
    position: relative;
}

.container.loaded {
    background: #00002d;
}

.content-wrapper {
    display: none;
    opacity: 0;
}

.container.loaded .content-wrapper {
    display: block;
}

.header-image {
    width: 100%;
    display: block;
}

.wait-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 30px 20px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 1000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.2);
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

.event-header {
    background: url('image/bg.png') no-repeat right center;
    background-size: cover;
}

.event-title {
    text-align: center;
    padding: 30px 20px 60px;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.event-info {
    padding: 0 20px 40px;
}

.info-item {
    margin-bottom: 30px;
}

.info-label {
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px
}

.info-label span {
    background: #fff;
    padding: 5px 10px;
    border-radius: 99em;
    color: #000;
}

.info-content {
    color: #fff;
    line-height: 1.8;
}

.section {
    padding: 40px 20px;
    /* border-top: 1px solid rgba(255, 255, 255, 0.2); */
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
}

.invitation-card {
    border: 1px solid #fff;
    padding: 20px;
    border-radius: 10px;
}

.invitation-text {
    text-align: center;
    line-height: 2;
    color: #fff;
    margin-bottom: 30px;
}

.btn-attend {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 15px 30px;
    background: #fff;
    color: #000;
    text-align: center;
    text-decoration: none;
    border-radius: 99em;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}

.section-divider {
  width: 2px;
  height: 50px;
  margin: 0 auto;
  background: #dec49d;
  margin-bottom: 20px;
}

.location-info {
    margin-bottom: 20px;
}

.map-container {
    width: 100%;
    background: #e0e0e0;
    margin-bottom: 20px;
    border-radius: 5px;
}

.map-container img {
  width: 100%;
  object-fit: cover;
}

.map-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.map-btn {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    transition: all 0.3s;
}

.map-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.map-btn.active {
    background: #4a90e2;
    color: #fff;
    border-color: #4a90e2;
}

.address-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 10px;
}

.address-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
    stroke: #fff;
}

.address-text {
    flex: 1;
    color: #fff;
    font-size: 14px;
}

.copy-btn {
    padding: 5px 10px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 99em;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
}

.contact-section {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
}

.contact-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

.contact-info {
    color: #fff;
    margin-bottom: 10px;
}

.contact-phone {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 99em;
    font-weight: bold;
    margin-top: 10px;
}

.footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* 모달 스타일 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    position: relative;
    padding: 30px;
    color: #333;
    margin: 50px auto;
    box-sizing: border-box;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
    color: #00002d;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: #4a90e2;
}

.error-message {
    display: none;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

.checkbox-group {
    margin-top: 25px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.privacy-content {
    margin-top: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.6;
    color: #666;
    max-height: 200px;
    overflow-y: auto;
}

.privacy-content p {
    margin-bottom: 8px;
}

.privacy-content p:last-child {
    margin-bottom: 0;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn-cancel,
.btn-submit {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 99em;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel {
    background: #e0e0e0;
    color: #333;
}

.btn-cancel:hover {
    background: #d0d0d0;
}

.btn-submit {
    background: #00002d;
    color: #fff;
}

.btn-submit:hover {
    background: #000040;
}

@media (max-width: 480px) {
    .event-title {
        font-size: 20px;
    }

    .section-title {
        font-size: 18px;
    }

    .invitation-text {
        font-size: 14px;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .form-buttons {
        flex-direction: column;
    }
}

