/**
 * Contact Modal Styles
 * お問い合わせモーダル専用スタイル
 */

.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-modal.active {
    display: flex !important;
    opacity: 1;
}

.contact-modal-content {
    background: white;
    background-image: url('/img/bg_white.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    border-radius: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.1s ease-in-out;
}

.contact-modal.active .contact-modal-content {
    transform: translateY(0);
}

/* ヘッダー */
.contact-modal-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    background-image: url('/img/bg_white.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px 48px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.contact-modal-logo {
    height: 40px;
    width: auto;
}

.contact-modal-close {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    color: #1b1720;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-modal-close:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.contact-modal-close:active {
    transform: scale(0.95);
}

/* タイトルセクション */
.contact-modal-title-section {
    position: sticky;
    top: 80px;
    width: 100%;
    padding: 32px 48px;
    text-align: left;
    background: #1b1720;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-modal-title-section h1 {
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    margin-left: 8%;
    z-index:101;
}

.contact-modal-main-title {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    display: block;
}

.contact-modal-subtitle {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    display: block;
}

/* ヘッダー画像 */
.contact-header-image {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: auto;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-header-image.active {
    opacity: 1;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 24px 24px;
}

.contact-form .form-group {
    margin-bottom: 24px;
}

.contact-form .form-field-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.6;
    padding: 8px 12px;
    background: rgba(27, 23, 32, 0.03);
    border-left: 3px solid #1b1720;
    border-radius: 4px;
}

.contact-form .form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.contact-form .form-input,
.contact-form .form-textarea,
.contact-form .form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s;
    font-family: 'Noto Sans JP', sans-serif;
}

.contact-form .form-input:focus,
.contact-form .form-textarea:focus,
.contact-form .form-select:focus {
    outline: none;
    border-color: #1b1720;
}

.contact-form .form-textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .form-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    background: #1b1720;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.contact-form .form-submit:hover {
    background: #2d2535;
    transform: translateY(-2px);
}

.contact-form .form-submit:active {
    transform: translateY(0);
}


/* ラジオボタンとチェックボックスのスタイル */
.form-radio-group,
.form-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.form-radio-label,
.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
    border: 2px solid #e0e0e0;
    background: white;
}

.form-radio-label:hover,
.form-checkbox-label:hover {
    background: #f5f5f5;
    border-color: #1b1720;
}

.form-radio-label input[type="radio"],
.form-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-radio-label input[type="radio"]:disabled,
.form-checkbox-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* 定型文のスタイル */
.form-notice {
    background: #f8f9fa;
    border-left: 4px solid #1b1720;
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 4px;
}

.form-notice-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1b1720;
}

.form-notice-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    white-space: pre-wrap;
}

/* ヘルプテキストのスタイル */
.form-help-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

/* オリジナル曲追加質問のアニメーション */
.form-group-original-song-extra {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

.form-group-original-song-extra.show {
    max-height: 300px;
    opacity: 1;
    margin-bottom: 24px;
}

/* 日付入力のスタイル */
input[type="date"] {
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s;
    font-family: 'Noto Sans JP', sans-serif;
}

input[type="date"]:focus {
    outline: none;
    border-color: #1b1720;
}

/* ========================================
   モバイル対応
   ======================================== */

@media (max-width: 767px) {
    .contact-modal-title-section h1 {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-left: 0;
    }
    
    .contact-modal-main-title {
        font-size: 1.5rem;
    }
    
    .contact-modal-subtitle {
        font-size: 1.8rem;
    }
    
    .contact-modal-header {
        padding: 16px 24px;
    }
    
    .contact-modal-title-section {
        padding: 24px;
        top: 72px;
    }
    
    .contact-header-image {
        display: none;
    }
}

/* ========================================
   サンキューモーダル（完全独立）
   ======================================== */

.thankyou-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thankyou-overlay.active {
    display: flex !important;
    opacity: 1;
}

.thankyou-box {
    background: white;
    background-image: url('/img/bg_white.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    padding: 48px;
    width: 50%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.thankyou-overlay.active .thankyou-box {
    transform: scale(1);
}

.thankyou-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    color: #1b1720;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thankyou-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.thankyou-close:active {
    transform: scale(0.95);
}

.thankyou-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.thankyou-logo {
    width: 200px;
    height: auto;
    margin-bottom: 32px;
}

.thankyou-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1b1720;
    margin: 0 0 24px 0;
}

.thankyou-message {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    max-width: 600px;
    margin: 0;
}

@media (max-width: 767px) {
    .thankyou-box {
        width: 90%;
        padding: 32px 24px;
    }
    
    .thankyou-logo {
        width: 150px;
        margin-bottom: 24px;
    }
    
    .thankyou-title {
        font-size: 1.3rem;
    }
    
    .thankyou-message {
        font-size: 0.9rem;
    }
}
