/* -----------------------------
   VARIABLES & RESET
----------------------------- */
:root {
  --color-primary: #0A192F; /* Deep Navy - Trust & Premium */
  --color-accent: #D4AF37;  /* Gold - Exclusivity */
  --color-accent-hover: #b5952f;
  --color-bg-light: #FDFBF7; /* Ivory/White */
  --color-text: #333333;
  --color-text-light: #666666;
  --color-white: #ffffff;
  --color-border: #e0e0e0;
  
  --font-heading: 'Noto Serif KR', serif;
  --font-body: 'Noto Sans KR', sans-serif;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* -----------------------------
   BUTTONS
----------------------------- */
.btn-primary {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-primary.large {
  padding: 14px 32px;
  font-size: 1.1rem;
}

/* -----------------------------
   NAVIGATION
----------------------------- */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
}

.logo {
  font-size: 1.8rem;
  color: var(--color-primary);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links li a:not(.btn-primary):hover {
  color: var(--color-accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* -----------------------------
   HERO & FORM SECTION
----------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px; /* Space for navbar */
  background: url('https://images.unsplash.com/photo-1511285560929-80b456fea0bc?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.4));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-text h2 {
  color: var(--color-white);
  font-size: 3.5rem;
  line-height: 1.3;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-text p {
  color: var(--color-bg-light);
  font-size: 1.2rem;
  max-width: 600px;
}

/* Matching Form */
.match-form-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--color-accent);
  max-width: 900px;
  margin-top: 20px;
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-header h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.form-header p {
  color: var(--color-text-light);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

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

.column-title {
  font-size: 1.2rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.form-group.row-group {
  flex-direction: row;
  gap: 15px;
}

.form-group.row-group .half {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

input[type="text"],
input[type="number"],
select {
  padding: 12px 15px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--color-white);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(10, 25, 47, 0.1);
}

/* Custom Radio Buttons */
.radio-group {
  display: flex;
  gap: 15px;
}

.radio-group input[type="radio"] {
  display: none;
}

.radio-group label {
  flex: 1;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--color-white);
}

.radio-group input[type="radio"]:checked + label {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Submit Button */
.btn-submit {
  width: 100%;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 16px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.btn-submit:hover {
  background-color: #06101e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* -----------------------------
   RESULTS SECTION
----------------------------- */
.results-section {
  padding: 80px 0;
  background-color: var(--color-bg-light);
}

.hidden {
  display: none !important;
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 50px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* Profile Card */
.profile-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background-color: #e9ecef; /* Placeholder color */
}

/* Fallback dummy icon for avatar if image not available */
.card-img-placeholder {
  width: 100%;
  height: 250px;
  background-color: var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-white);
  font-size: 5rem;
  opacity: 0.8;
}

.match-score {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
}

.card-name {
  font-size: 1.3rem;
  color: var(--color-primary);
}

.card-info {
  list-style: none;
  font-size: 0.95rem;
  color: var(--color-text);
}

.card-info li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-info i {
  color: var(--color-accent);
  width: 16px;
  text-align: center;
}

.card-footer {
  margin-top: auto;
  padding-top: 15px;
}

.btn-card {
  width: 100%;
  padding: 10px;
  background-color: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.btn-card:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.results-action {
  text-align: center;
  background: var(--color-white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.results-action p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* -----------------------------
   FEATURES SECTION
----------------------------- */
.features-section {
  padding: 80px 0;
  background-color: var(--color-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--color-bg-light);
  border-radius: 8px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-card i {
  font-size: 3rem;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
}

/* -----------------------------
   MODAL (PREMIUM REGISTRATION)
----------------------------- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 1;
  transition: var(--transition);
}

.modal-content {
  background: var(--color-bg-light);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: 12px;
  position: relative;
  overflow-y: auto;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 10;
}

.modal-header {
  text-align: center;
  margin-bottom: 40px;
}

.modal-header h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.form-section {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.form-section .section-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-align: left;
  border-left: 4px solid var(--color-accent);
  padding-left: 15px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.required {
  color: #e63946;
  margin-left: 2px;
}

/* File Upload Area */
.file-upload-wrapper {
  margin-bottom: 20px;
}

.file-upload-box {
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  position: relative;
  transition: var(--transition);
  background: var(--color-white);
}

.file-upload-box:hover {
  border-color: var(--color-accent);
  background: rgba(212, 175, 55, 0.05);
}

.file-upload-box i {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.file-input {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}

.agreement-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.agreement-checkbox input {
  margin-top: 4px;
}

.date-select-group {
  display: flex;
  gap: 5px;
}

.date-select-group select {
  flex: 1;
  padding: 12px 5px; /* Adjusting for narrow space */
  font-size: 0.9rem;
}

.modal-footer {
  margin-top: 20px;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .form-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .modal-content {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------
   FOOTER
----------------------------- */
footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 30px 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* -----------------------------
   RESPONSIVE
----------------------------- */
@media (max-width: 992px) {
  .hero-text h2 {
    font-size: 2.8rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* simple mobile hide for now */
  }
  .mobile-menu-btn {
    display: block;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .hero-section {
    padding-top: 100px;
  }
}