/**
 * 픽콘 문의/제안 접수 페이지 CSS
 */

/* =====================================================
   1. 페이지 레이아웃
   ===================================================== */
.submission-form-container {
    padding-top: 48px;
    background-color: #f4f6f9;
    min-height: 100vh;
}

.form-content {
    padding: 20px;
    font-family: 'Noto Sans KR', sans-serif;
}

/* =====================================================
   2. 제목 및 안내 영역
   ===================================================== */
.submission-title-area {
    text-align: center;
    margin-bottom: 28px;
    padding: 28px 20px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(90, 134, 255, 0.08);
    border: 1px solid rgba(90, 134, 255, 0.1);
}

.submission-title-icon {
    margin-bottom: 12px;
}

.submission-title-icon svg {
    opacity: 0.85;
}

.submission-title-area h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px 0;
    letter-spacing: -0.3px;
}

.submission-title-area .submission-guide {
    font-size: 14px;
    color: #8b95a5;
    line-height: 1.6;
    margin: 0;
}

/* =====================================================
   3. 폼 스타일
   ===================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    background-color: #fff;
    font-family: 'Noto Sans KR', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5a86ff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #adb5bd;
}

.form-group textarea {
    resize: vertical;
}

.helper-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #868e96;
}

/* =====================================================
   3-1. 이메일 입력
   ===================================================== */
/* 이메일은 단일 input으로 변경됨 (카카오 이메일 pre-fill) */

/* =====================================================
   4. 개인정보 동의
   ===================================================== */
.privacy-agreement-section {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.agreement-header {
    display: flex;
    align-items: flex-start;
}

.agreement-header label {
    margin: 0;
    font-weight: normal;
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.agreement-header #privacy-consent {
    margin-right: 8px;
    margin-top: 2px;
    flex-shrink: 0;
}

.toggle-policy-btn {
    background: none;
    border: none;
    color: #5a86ff;
    cursor: pointer;
    font-size: 13px;
    padding: 0 0 0 8px;
    font-family: 'Noto Sans KR', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 1px;
}

.privacy-policy-content {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    color: #495057;
    line-height: 1.6;
    display: none;
}

.privacy-policy-content.open {
    display: block;
}

.privacy-policy-content strong {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #333;
}

.privacy-policy-content p {
    margin: 0 0 10px 0;
}

/* =====================================================
   5. 접수 버튼
   ===================================================== */
.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #5a86ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    font-family: 'Noto Sans KR', sans-serif;
}

.submit-btn:hover {
    background-color: #4a70d6;
}

.submit-btn:disabled {
    background-color: #ced4da;
    cursor: not-allowed;
}

/* =====================================================
   6. 접수 내역
   ===================================================== */
.history-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.history-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-item {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.history-header {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.history-header:hover {
    background-color: #f8f9fa;
}

.history-header .type {
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.history-header .type.inquiry {
    color: #5a86ff;
}

.history-header .type.suggestion {
    color: #4caf50;
}

.history-header .date {
    font-size: 12px;
    color: #868e96;
    flex-shrink: 0;
    white-space: nowrap;
    margin: 0 10px;
}

.history-header .message-preview {
    font-size: 15px;
    color: #495057;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.history-header .toggle-icon {
    margin-left: auto;
    font-size: 12px;
    color: #868e96;
}

.history-content {
    padding: 0 15px 15px 15px;
    font-size: 15px;
    color: #495057;
    line-height: 1.7;
    border-top: 1px solid #f1f3f5;
    margin-top: 10px;
    padding-top: 15px;
    display: none;
}

.history-content.open {
    display: block;
}

.history-content p {
    margin: 0;
}

.no-history {
    color: #868e96;
    text-align: center;
    padding: 20px 0;
}

.history-notice {
    font-size: 12px;
    color: #868e96;
    text-align: center;
    margin-top: 20px;
}

.history-login-notice {
    color: #868e96;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    line-height: 1.6;
}

/* =====================================================
   7. 접수 완료 화면
   ===================================================== */
.submission-success-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f4f6f9;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    font-family: 'Noto Sans KR', sans-serif;
}

.success-content {
    text-align: center;
    padding: 40px 30px;
    max-width: 360px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.submission-success-overlay.active .success-content {
    opacity: 1;
    transform: translateY(0);
}

.success-icon-wrap {
    margin-bottom: 28px;
}

.success-check circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: successCircle 0.6s ease-in-out 0.2s forwards;
}

.submission-success-overlay.active .success-check circle {
    stroke-dashoffset: 0;
}

.success-check path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}

.submission-success-overlay.active .success-check path {
    animation: successCheck 0.4s ease-in-out 0.6s forwards;
}

@keyframes successCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes successCheck {
    to { stroke-dashoffset: 0; }
}

.success-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px 0;
    letter-spacing: -0.3px;
}

.success-message {
    font-size: 15px;
    color: #8b95a5;
    line-height: 1.7;
    margin: 0 0 36px 0;
}

.success-home-btn {
    display: inline-block;
    padding: 14px 48px;
    background-color: #5a86ff;
    color: #fff;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.success-home-btn:hover {
    background-color: #4a70d6;
}
