/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: #3d4451;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Header */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    padding: 20px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e6e6;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #570df8;
}

.star {
    font-size: 1.8rem;
    animation: sparkle 2s ease-in-out infinite;
    color: #37cdbe;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.back-button {
    background: #570df8;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.back-button:hover {
    background: #4506cb;
    transform: translateY(-1px);
}

/* Main Content */
.main-content {
    background: transparent;
    border-radius: 20px;
    padding: 0;
    box-shadow: none;
    border: none;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 0;
}

.main-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #570df8;
    line-height: 1.3;
}

.hero-image {
    position: relative;
    height: 120px;
    margin: 30px 0;
}

.hero-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.icon-item {
    font-size: 1.8rem;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 2px solid #e5e6e6;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.icon-item:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(87, 13, 248, 0.2);
    border-color: #570df8;
}

.icon-1 { animation-delay: 0s; }
.icon-2 { animation-delay: 0.5s; }
.icon-3 { animation-delay: 1s; }
.icon-4 { animation-delay: 1.5s; }
.icon-5 { animation-delay: 2s; }
.icon-6 { animation-delay: 2.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.cta-button {
    background: #570df8;
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    min-height: 56px;
}

.cta-button:hover {
    background: #4506cb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(87, 13, 248, 0.3);
}

/* Features Section */
.features {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #3d4451;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: #ffffff;
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid #e5e6e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #37cdbe;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #3d4451;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.5;
}

/* How it works */
.how-it-works {
    padding: 60px 40px;
    background: #f2f2f2;
    border-radius: 20px;
    margin: 40px 0;
}

.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    max-width: 200px;
    border: 1px solid #e5e6e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #570df8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.step h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #3d4451;
}

.step p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
}

.step-arrow {
    font-size: 2rem;
    color: #570df8;
    font-weight: bold;
}

/* Input Section */
.input-section {
    max-width: 600px;
    margin: 0 auto;
}

.input-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e5e6e6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.page-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #3d4451;
}

.description {
    text-align: center;
    color: #6b7280;
    margin-bottom: 40px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.saju-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #3d4451;
}

.form-group input,
.form-group select {
    padding: 16px;
    border: 2px solid #e5e6e6;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #3d4451;
    min-height: 50px;
    height: 50px;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #570df8;
    box-shadow: 0 0 0 3px rgba(87, 13, 248, 0.1);
}

.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.date-inputs select {
    min-height: 50px;
    height: 50px;
    padding: 16px;
    font-size: 1rem;
    box-sizing: border-box;
}

.time-help {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-top: 8px;
    line-height: 1.4;
}

.gender-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.radio-option {
    position: relative;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border: 2px solid #e5e6e6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    font-weight: 600;
    color: #3d4451;
    min-height: 50px;
    height: 50px;
    box-sizing: border-box;
}

.radio-option input[type="radio"]:checked + .radio-label {
    border-color: #570df8;
    background: #570df8;
    color: white;
}

.radio-icon {
    font-size: 1.5rem;
}

.submit-button {
    background: #570df8;
    border: none;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 20px;
    min-height: 50px;
    height: 50px;
    width: 100%;
    box-sizing: border-box;
}

.submit-button:hover {
    background: #4506cb;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(87, 13, 248, 0.3);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(87, 13, 248, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    margin-bottom: 30px;
}

.star-spinner {
    font-size: 4rem;
    animation: spin 2s linear infinite;
    color: #37cdbe;
}

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

.loading-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.loading-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Result Page Styles */
.result-header {
    background: linear-gradient(135deg, #570df8, #37cdbe);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 32px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(87, 13, 248, 0.2);
}

.result-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.result-summary {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.result-summary p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Section Wrapper Styles */
.section-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.section-wrapper:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.section-header {
    margin-bottom: 24px;
}

.section-icon {
    display: inline-block;
    font-size: 1.4rem;
    margin-right: 12px;
    vertical-align: middle;
    background: linear-gradient(135deg, #570df8, #37cdbe);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-divider {
    height: 3px;
    background: linear-gradient(90deg, #570df8, #37cdbe, #f000b8);
    border-radius: 2px;
    margin-top: 12px;
    opacity: 0.8;
}

/* Recommendations */
.recommendations {
    margin-bottom: 32px;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.recommendation-section {
    margin-bottom: 25px;
}

.recommendation-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #3d4451;
    padding: 12px 20px;
    border-radius: 12px;
    display: inline-block;
}

.recommendation-subtitle:first-of-type {
    background: #d1fae5;
    color: #065f46;
}

.recommendations-list > div:nth-child(2) .recommendation-subtitle {
    background: #fee2e2;
    color: #991b1b;
}

.school-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid #e5e6e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    margin-bottom: 15px;
    position: relative;
    overflow: visible;
}

.school-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.recommended-card {
    border-left: 4px solid #10b981;
    background: #fefffe;
}

.not-recommended-card {
    border-left: 4px solid #ef4444;
    background: #fffffe;
}

.school-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 15px;
    margin-top: 5px;
}

.recommended-badge {
    background: #10b981;
    color: white;
}

.not-recommended-badge {
    background: #ef4444;
    color: white;
}

.school-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #3d4451;
}

.school-reason {
    color: #6b7280;
    line-height: 1.6;
    font-size: 1rem;
}

/* School Ranking Styles */
.school-ranking {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
    font-weight: bold;
}

.rank-1 {
    border-left-color: #ffd700 !important;
    border-left-width: 5px !important;
}

.rank-1 .school-ranking {
    border-color: #ffd700;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: white;
}

.rank-2 {
    border-left-color: #c0c0c0 !important;
    border-left-width: 5px !important;
}

.rank-2 .school-ranking {
    border-color: #c0c0c0;
    background: linear-gradient(135deg, #c0c0c0, #e5e7eb);
    color: white;
}

.rank-3 {
    border-left-color: #cd7f32 !important;
    border-left-width: 5px !important;
}

.rank-3 .school-ranking {
    border-color: #cd7f32;
    background: linear-gradient(135deg, #cd7f32, #d97706);
    color: white;
}

/* Direction Analysis */
.direction-analysis {
    margin-bottom: 32px;
}

.direction-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
}

.compass {
    display: flex;
    justify-content: center;
    align-items: center;
}

.compass-circle {
    width: 250px;
    height: 250px;
    border: 3px solid #570df8;
    border-radius: 50%;
    position: relative;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.compass-pointer {
    position: absolute;
    width: 4px;
    height: 80px;
    background: #f000b8;
    border-radius: 2px;
    transform-origin: bottom center;
    transition: transform 1s ease;
}

.pointer-arrow {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: #f000b8;
}

.compass-directions {
    position: absolute;
    width: 100%;
    height: 100%;
}

.compass-directions span {
    position: absolute;
    font-weight: 700;
    color: #3d4451;
    font-size: 1.1rem;
}

.north { top: 10px; left: 50%; transform: translateX(-50%); }
.east { right: 10px; top: 50%; transform: translateY(-50%); }
.south { bottom: 10px; left: 50%; transform: translateX(-50%); }
.west { left: 10px; top: 50%; transform: translateY(-50%); }

.direction-info h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #3d4451;
    font-weight: 700;
}

.direction-info p {
    line-height: 1.6;
    color: #6b7280;
}

/* Fortune Timeline - CSS Bars */
.fortune-timeline {
    margin-bottom: 32px;
}

.timeline-container {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e5e6e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fortune-bars {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.year-group {
    flex: 1;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.year-group h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    text-align: center;
    font-size: 1.1rem;
}

.bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bar-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.bar-container {
    background: var(--bg-secondary);
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.bar {
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    transition: width 0.3s ease;
}

.academic-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.social-bar {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.romance-bar {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #333;
}

.timeline-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.academic {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.legend-color.social {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.legend-color.romance {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

/* Academic Track Styles */
.academic-track {
    margin: 3rem 0;
}

.track-container {
    max-width: 1000px;
    margin: 0 auto;
}

.track-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.track-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.track-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--track-color-1), var(--track-color-2));
}

.track-card.liberal-arts {
    --track-color-1: #ff9a9e;
    --track-color-2: #fecfef;
    border-color: #ff9a9e20;
}

.track-card.science {
    --track-color-1: #667eea;
    --track-color-2: #764ba2;
    border-color: #667eea20;
}

.track-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.track-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.track-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.track-score {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--track-color-1), var(--track-color-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.track-content h5 {
    color: var(--primary-color);
    margin: 0 0 0.8rem 0;
    font-size: 1rem;
}

.track-strengths ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-secondary);
}

.track-strengths li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.track-subjects {
    margin-top: 1.5rem;
}

.subject-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.subject-tag {
    background: linear-gradient(90deg, var(--track-color-1), var(--track-color-2));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.track-recommendation {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.recommendation-box {
    padding: 2rem;
    background: linear-gradient(135deg, #f6f9fc 0%, #ffffff 100%);
}

.recommendation-box h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommendation-box p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Additional Info */
.additional-info {
    margin-bottom: 32px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e5e6e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #37cdbe;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.info-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #3d4451;
}

.info-card p {
    color: #6b7280;
    line-height: 1.5;
}

/* Closing Message */
.closing-message {
    margin-top: 40px;
    margin-bottom: 32px;
}

.message-box {
    background: #f2f2f2;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e5e6e6;
}

.message-box h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #3d4451;
    font-weight: 700;
}

.message-box p {
    line-height: 1.6;
    color: #6b7280;
}

/* Action Buttons */
.action-buttons {
    background: #f8fafc;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.primary-button, .secondary-button {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-button {
    background: #570df8;
    color: white;
}

.primary-button:hover {
    background: #4506cb;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(87, 13, 248, 0.3);
}

.secondary-button {
    background: #f000b8;
    color: white;
}

.secondary-button:hover {
    background: #d1006b;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(240, 0, 184, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive Design - 단순화된 버전 */
@media (max-width: 1024px) {
    .direction-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .compass-circle {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .hero-icons .icon-5,
    .hero-icons .icon-6 {
        display: none;
    }

    .main-title {
        font-size: 1.5rem;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        min-height: 54px;
        height: 54px;
        padding: 18px 16px;
        font-size: 1.1rem;
        box-sizing: border-box;
    }

    .form-group input,
    .form-group select {
        padding: 18px 16px;
        font-size: 1.1rem;
        min-height: 54px;
        height: 54px;
        box-sizing: border-box;
    }

    .date-inputs select {
        padding: 18px 16px;
        font-size: 1.1rem;
        min-height: 54px;
        height: 54px;
        box-sizing: border-box;
    }

    .radio-label {
        padding: 18px 16px;
        font-size: 1rem;
        min-height: 54px;
        height: 54px;
        box-sizing: border-box;
    }

    .submit-button {
        padding: 18px;
        font-size: 1.1rem;
        min-height: 54px;
        height: 54px;
        box-sizing: border-box;
    }

    .result-title {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .recommendation-subtitle {
        font-size: 1rem;
    }

    .school-name {
        font-size: 1rem;
    }

    .track-comparison {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .track-card {
        padding: 1.5rem;
    }
    
    .track-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .track-score {
        font-size: 1.5rem;
    }
    
    .subject-tags {
        gap: 0.3rem;
    }
    
    .subject-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-icons .icon-4,
    .hero-icons .icon-5,
    .hero-icons .icon-6 {
        display: none;
    }

    .main-title {
        font-size: 1.3rem;
    }

    .cta-button {
        min-height: 58px;
        height: 58px;
        padding: 20px 18px;
        font-size: 1.1rem;
        box-sizing: border-box;
    }

    .input-container {
        padding: 25px 20px;
    }

    .form-group input,
    .form-group select {
        padding: 20px 18px;
        font-size: 1.1rem;
        min-height: 58px;
        height: 58px;
        box-sizing: border-box;
    }

    .date-inputs select {
        padding: 20px 18px;
        font-size: 1.1rem;
        min-height: 58px;
        height: 58px;
        box-sizing: border-box;
    }

    .radio-label {
        padding: 20px 18px;
        font-size: 1rem;
        min-height: 58px;
        height: 58px;
        box-sizing: border-box;
    }

    .submit-button {
        padding: 20px;
        font-size: 1.1rem;
        min-height: 58px;
        height: 58px;
        box-sizing: border-box;
    }

    .result-title {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .recommendation-subtitle {
        font-size: 0.95rem;
    }

    .school-name {
        font-size: 0.95rem;
    }

    .track-comparison {
        gap: 1.5rem;
    }
    
    .track-card {
        padding: 1.5rem;
    }
    
    .track-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .track-score {
        font-size: 1.5rem;
    }
    
    .subject-tags {
        gap: 0.3rem;
    }
    
    .subject-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }
}

/* Analysis Cards - 각 섹션을 독립적인 카드로 */
.analysis-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e6e6;
    transition: all 0.3s ease;
    margin-bottom: 32px;
    width: 100%;
}

.analysis-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.card-icon {
    font-size: 2rem;
    padding: 12px;
    background: linear-gradient(135deg, #570df8 0%, #37cdbe 100%);
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 56px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3d4451;
    margin: 0;
    line-height: 1.3;
}

.card-divider {
    height: 3px;
    background: linear-gradient(90deg, #570df8 0%, #37cdbe 50%, #f093fb 100%);
    border-radius: 2px;
    margin-bottom: 24px;
}

/* 학교 추천 카드 */
.school-recommendation-card {
    /* 특별한 스타일이 필요한 경우 추가 */
}

/* 방향 분석 카드 */
.direction-card {
    /* 특별한 스타일이 필요한 경우 추가 */
}

/* 운세 카드 */
.fortune-card {
    /* 특별한 스타일이 필요한 경우 추가 */
}

/* 문이과 카드 */
.track-card {
    /* 특별한 스타일이 필요한 경우 추가 */
}

/* Recommendation List */
.recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

/* Recommendation Cards */
.recommendation-card {
    padding: 24px;
    border-radius: 16px;
    border: 2px solid transparent;
    position: relative;
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.gold-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border-color: #ffd700;
}

.silver-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-color: #c0c0c0;
}

.bronze-card {
    background: linear-gradient(135deg, #fff8f0 0%, #fffaf7 100%);
    border-color: #cd7f32;
}

.recommendation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.rank-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #b45309;
}

.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e5e5e5 100%);
    color: #6b7280;
}

.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #e5a663 100%);
    color: #7c2d12;
}

.trophy-icon {
    font-size: 1.5rem;
}

.school-type-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3d4451;
    margin: 0 0 12px 0;
}

.recommendation-reason {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Notice Box */
.notice-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #f7fee7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    font-weight: 500;
    color: #166534;
}

.notice-icon {
    font-size: 1.2rem;
    color: #16a34a;
}

.notice-text {
    margin: 0;
}

/* Direction Content */
.direction-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.compass-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.compass {
    position: relative;
    width: 200px;
    height: 200px;
}

.compass-circle {
    width: 100%;
    height: 100%;
    border: 3px solid #570df8;
    border-radius: 50%;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.compass-pointer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center;
    width: 4px;
    height: 80px;
    background: linear-gradient(180deg, #570df8 0%, #37cdbe 100%);
    border-radius: 2px;
    margin-left: -2px;
    margin-top: -40px;
    transition: transform 0.5s ease;
}

.pointer-arrow {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    color: #570df8;
    font-weight: bold;
}

.compass-directions {
    position: absolute;
    width: 100%;
    height: 100%;
}

.compass-directions span {
    position: absolute;
    font-weight: 600;
    font-size: 1rem;
    color: #6b7280;
    transition: all 0.3s ease;
}

.compass-directions span.highlighted {
    color: #570df8;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(87, 13, 248, 0.2);
}

.north { top: 10px; left: 50%; transform: translateX(-50%); }
.east { right: 10px; top: 50%; transform: translateY(-50%); }
.south { bottom: 10px; left: 50%; transform: translateX(-50%); }
.west { left: 10px; top: 50%; transform: translateY(-50%); }

.direction-info {
    text-align: center;
}

.direction-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #3d4451;
    margin: 0 0 12px 0;
}

.direction-description {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Fortune Content */
.fortune-content {
    /* 운세 카드 내부 스타일 */
}

.fortune-introduction {
    text-align: center;
    margin-bottom: 24px;
}

.fortune-introduction p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
}

.yearly-fortune {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.year-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e5e6e6;
}

.year-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.year-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3d4451;
    margin: 0;
}

.year-period {
    color: #6b7280;
    font-weight: 600;
}

.fortune-scores {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.score-item {
    /* 점수 아이템 스타일 */
}

.score-label {
    font-weight: 600;
    color: #3d4451;
    margin-bottom: 8px;
    font-size: 1rem;
}

.score-bar-container {
    background: #e5e6e6;
    height: 32px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 8px;
}

.score-bar {
    height: 100%;
    background: linear-gradient(135deg, #570df8 0%, #37cdbe 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    transition: width 0.3s ease;
}

.score-bar-container.romance .score-bar {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.score-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.fortune-summary {
    margin-top: 24px;
}

.summary-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 24px;
}

.summary-box h4 {
    color: #166534;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-item {
    color: #166534;
    line-height: 1.6;
}

/* Track Analysis - 문과/이과 분석 통일된 스타일 */
.track-analysis {
    width: 100%;
}

.track-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.track-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    border: 2px solid #e5e6e6;
    transition: all 0.3s ease;
    position: relative;
}

.track-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.track-card.science {
    border-color: #570df8;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.track-card.liberal-arts {
    border-color: #f093fb;
    background: linear-gradient(135deg, #fdf4ff 0%, #f3e8ff 100%);
}

.track-card.recommended-track {
    border-width: 3px;
    box-shadow: 0 4px 20px rgba(87, 13, 248, 0.15);
}

.track-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e6e6;
}

.track-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3d4451;
    margin: 0;
}

.track-score {
    font-size: 2rem;
    font-weight: 800;
    color: #570df8;
    line-height: 1;
}

.track-card.liberal-arts .track-score {
    color: #f093fb;
}

.track-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #3d4451;
    margin: 0 0 12px 0;
}

.track-content ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.track-content li {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 0.95rem;
    color: #6b7280;
    position: relative;
    padding-left: 8px;
}

.track-content li::before {
    content: "•";
    color: #570df8;
    font-weight: bold;
    position: absolute;
    left: -12px;
}

.track-content li strong {
    color: #3d4451;
    font-weight: 600;
}

.track-note {
    margin: 16px 0 0 0;
    font-size: 0.9rem;
    color: #9ca3af;
    font-style: italic;
    line-height: 1.5;
}

.final-recommendation {
    margin-top: 32px;
}

.recommendation-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #f7fee7 100%);
    border: 2px solid #bbf7d0;
    border-radius: 16px;
    padding: 24px;
}

.recommendation-box h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #166534;
    margin: 0 0 12px 0;
}

.recommendation-box p {
    font-size: 1rem;
    line-height: 1.6;
    color: #166534;
    margin: 0;
}

.recommendation-box strong {
    font-weight: 700;
}

/* Responsive Design for Track Analysis */
@media (max-width: 768px) {
    .track-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .track-card {
        padding: 20px;
    }
    
    .track-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .track-score {
        font-size: 1.5rem;
    }
    
    .track-header h4 {
        font-size: 1.1rem;
    }
    
    .track-content h5 {
        font-size: 0.95rem;
    }
    
    .track-content li {
        font-size: 0.9rem;
    }
    
    .recommendation-box {
        padding: 20px;
    }
    
    .recommendation-box h4 {
        font-size: 1rem;
    }
    
    .recommendation-box p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .track-card {
        padding: 16px;
    }
    
    .track-header {
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .track-score {
        font-size: 1.3rem;
    }
    
    .track-header h4 {
        font-size: 1rem;
    }
    
    .track-content h5 {
        font-size: 0.9rem;
    }
    
    .track-content li {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .recommendation-box {
        padding: 16px;
    }
    
    .recommendation-box h4 {
        font-size: 0.95rem;
    }
    
    .recommendation-box p {
        font-size: 0.9rem;
    }
}

.track-card.liberal-arts .track-content li::before {
    color: #f093fb;
}

/* Gender School Card Styles */
.gender-school-card {
    /* 기본 analysis-card 스타일 상속 */
}

.gender-school-content {
    /* 성별 구성 추천 카드 내부 컨텐츠 */
}

.gender-recommendation-summary {
    background: linear-gradient(135deg, #f0fdf4 0%, #f7fee7 100%);
    border: 2px solid #bbf7d0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.recommended-gender-type h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #166534;
    margin: 0 0 12px 0;
}

.suitability-score {
    font-size: 1.1rem;
    font-weight: 600;
    color: #16a34a;
    background: rgba(22, 101, 52, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

.gender-analysis {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.recommendation-reasons h5,
.alternative-considerations h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #3d4451;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendation-reasons ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.recommendation-reasons li {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #6b7280;
    position: relative;
    padding-left: 8px;
}

.recommendation-reasons li::before {
    content: "•";
    color: #16a34a;
    font-weight: bold;
    position: absolute;
    left: -12px;
}

.recommendation-reasons li strong {
    color: #3d4451;
    font-weight: 600;
}

.alternative-considerations {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e6e6;
}

.alternatives-content p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

.gender-school-note {
    margin-top: 24px;
}

.note-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fef9e7 100%);
    border: 1px solid #fcd34d;
    border-radius: 12px;
}

.note-icon {
    font-size: 1.2rem;
    color: #d97706;
    margin-top: 2px;
}

.note-box p {
    margin: 0;
    color: #92400e;
    line-height: 1.5;
    font-size: 0.9rem;
}

.note-box strong {
    font-weight: 700;
    color: #78350f;
}

/* Responsive Design for Gender School Card */
@media (max-width: 768px) {
    .gender-recommendation-summary {
        padding: 20px;
    }
    
    .recommended-gender-type h4 {
        font-size: 1.2rem;
    }
    
    .suitability-score {
        font-size: 1rem;
    }
    
    .recommendation-reasons li,
    .alternatives-content p {
        font-size: 0.9rem;
    }
    
    .note-box {
        padding: 14px 16px;
    }
    
    .note-box p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .gender-recommendation-summary {
        padding: 16px;
    }
    
    .recommended-gender-type h4 {
        font-size: 1.1rem;
    }
    
    .suitability-score {
        font-size: 0.95rem;
        padding: 6px 12px;
    }
    
    .recommendation-reasons li,
    .alternatives-content p {
        font-size: 0.85rem;
    }
} 