/* CSS Variables & Palette mapping exactly to the Visily mock */
:root {
  --ykk-blue: #007bb6;
  --ykk-blue-hover: #006aa0;
  --bg-page: #f4f7f9;
  --bg-card: #ffffff;
  --bg-image-box: #ffffed; /* Light yellow background for product card image box */
  
  --text-dark: #1c2b36;
  --text-gray: #7c8e9a;
  --border-light: #eef2f5;
  --border-card: #e1e8ed;
  
  --blue-tint-bg: #eef7fc;
  --blue-tint-border: #bce1f2;
  
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --border-radius: 12px;
  --transition-speed: 0.25s;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Header Navigation Bar */
.app-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-card);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 60px;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  position: relative;
}

.header-logo {
  display: flex;
  align-items: center;
  z-index: 2;
}

.ykk-text {
  background-color: var(--ykk-blue);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 5px 10px;
  border-radius: 4px;
}

.header-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  text-align: center;
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-link {
  color: var(--text-dark);
  display: flex;
  align-items: center;
  transition: opacity var(--transition-speed);
}

.icon-link:hover {
  opacity: 0.7;
}

.btn-get-app {
  background-color: var(--ykk-blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  transition: background-color var(--transition-speed);
}

.btn-get-app:hover {
  background-color: var(--ykk-blue-hover);
}

/* Verification Status Banner */
.status-banner {
  background-color: var(--ykk-blue);
  color: #ffffff;
  padding: 40px 20px 48px;
  text-align: center;
}

.status-container {
  max-width: 580px;
  margin: 0 auto;
}

.check-circle {
  width: 72px;
  height: 72px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.check-circle svg {
  width: 36px;
  height: 36px;
  stroke: var(--ykk-blue);
}

.status-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.status-subtitle {
  font-size: 15px;
  font-weight: 400;
  opacity: 0.95;
  line-height: 1.5;
  margin-bottom: 24px;
}

.verified-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.pill-check-icon {
  stroke: #ffffff;
}

/* Content Container & Wrapper */
.content-wrapper {
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 16px 56px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-gray);
  letter-spacing: 1px;
  padding-left: 4px;
}

/* Card Foundation */
.card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-card);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(28, 43, 54, 0.03);
}

/* Card 1: Product Details image */
.card-image-box {
  background-color: var(--bg-image-box);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
}

.product-img {
  max-width: 100%;
  height: 220px;
  object-fit: contain;
}

.card-body {
  padding: 24px;
}

.details-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.product-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.product-subtitle {
  font-size: 13px;
  color: var(--text-gray);
  margin-top: 2px;
}

.pill-verified-detail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--blue-tint-bg);
  border: 1px solid var(--blue-tint-border);
  color: var(--ykk-blue);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}

.pill-verified-detail svg {
  stroke: var(--ykk-blue);
}

/* Property Table rows */
.property-list {
  display: flex;
  flex-direction: column;
}

.property-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 4px;
  border-top: 1px solid var(--border-light);
}

.prop-label {
  font-size: 14px;
  color: var(--text-gray);
}

.prop-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

/* Blue Official Verification banner */
.official-verification-alert {
  background-color: var(--blue-tint-bg);
  border: 1px solid var(--blue-tint-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.shield-icon {
  color: var(--ykk-blue);
  display: flex;
  align-items: center;
}

.alert-text {
  color: var(--ykk-blue);
  font-size: 13px;
  font-weight: 700;
}

/* Card 2: Download Box styles */
.download-banner {
  background-color: var(--ykk-blue);
  color: #ffffff;
  padding: 32px 24px;
  text-align: center;
}

.download-badge-logo {
  display: inline-flex;
  background-color: #ffffff;
  color: var(--ykk-blue);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 4px 8px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.download-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-description {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.4;
  max-width: 420px;
  margin: 0 auto;
}

.download-actions {
  padding: 24px;
  text-align: center;
  background-color: var(--bg-card);
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-store {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--text-dark);
  border-radius: 8px;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--text-dark);
  width: 156px;
  text-align: left;
  transition: background-color var(--transition-speed);
}

.btn-store:hover {
  background-color: var(--border-light);
}

.store-icon {
  flex-shrink: 0;
}

.store-text {
  display: flex;
  flex-direction: column;
}

.store-subtext {
  font-size: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.store-maintext {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.download-footer-note {
  font-size: 12px;
  color: var(--text-gray);
}

/* Card 3: How to earn rewards step list */
.card-rewards {
  padding: 24px;
}

.rewards-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.rewards-icon {
  color: var(--ykk-blue);
}

.rewards-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ykk-blue);
}

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

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-number {
  width: 36px;
  height: 36px;
  background-color: var(--ykk-blue);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content {
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}

.step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.step-subtitle {
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 1px;
}

/* Footer Section */
.app-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-card);
  padding: 40px 20px 48px;
  text-align: center;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--blue-tint-bg);
  border: 1px solid var(--blue-tint-border);
  color: var(--ykk-blue);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-badge svg {
  stroke: var(--ykk-blue);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 12px;
  transition: color var(--transition-speed);
}

.footer-links a:hover {
  color: var(--text-dark);
}

.divider {
  color: var(--border-card);
  font-size: 12px;
}

.footer-copyright {
  font-size: 11px;
  color: var(--text-gray);
  opacity: 0.8;
}

/* Orientation & Mobile Details */

/* Responsive Header adjustments */
@media (max-width: 640px) {
  .app-header {
    height: auto;
    min-height: 60px;
    padding: 8px 0;
  }

  .header-container {
    padding: 0 12px;
    gap: 8px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-actions .icon-link {
    display: flex;
    align-items: center;
  }

  .header-actions .icon-link svg {
    width: 18px;
    height: 18px;
  }

  .header-title {
    font-size: 14px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    text-align: center;
    white-space: nowrap;
  }
}

/* Mobile Portrait / Vertical (standard smartphones) */
@media (max-width: 480px) {
  .header-container {
    padding: 0 10px;
    gap: 6px;
  }
  
  .header-actions {
    gap: 6px;
  }

  .header-title {
    font-size: 13px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    text-align: center;
  }

  .btn-get-app {
    padding: 5px 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .ykk-text {
    font-size: 13px;
    padding: 4px 8px;
  }
  
  .status-title {
    font-size: 20px;
  }
  
  .status-banner {
    padding: 32px 16px 40px;
  }
  
  .store-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .btn-store {
    width: 100%;
    max-width: 220px;
    justify-content: center;
  }
  
  .content-wrapper {
    padding: 20px 12px 40px;
    gap: 24px;
  }
  
  .card-image-box {
    padding: 16px;
  }
  
  .product-img {
    height: 180px;
  }
}

/* Mobile Landscape / Horizontal Layout */
@media (max-height: 480px) and (orientation: landscape) {
  .status-banner {
    padding: 24px 16px;
  }
  .check-circle {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }
  .check-circle svg {
    width: 24px;
    height: 24px;
  }
  .status-title {
    font-size: 18px;
    margin-bottom: 6px;
  }
  .status-subtitle {
    font-size: 13px;
    margin-bottom: 16px;
  }
  .content-wrapper {
    padding: 16px 12px;
    gap: 20px;
  }
}

/* Loading Screen Styles */
#screen-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding: 40px 20px;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(0, 123, 182, 0.15);
  border-left-color: var(--ykk-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-gray);
}

/* Unverified Screen Styles */
.status-banner-unverified-card {
  background-color: var(--ykk-blue);
  color: #ffffff;
  padding: 28px 20px 32px;
  text-align: center;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 123, 182, 0.2);
  box-shadow: 0 4px 12px rgba(0, 123, 182, 0.12);
}

.status-banner-unverified-card .status-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.status-banner-unverified-card .status-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 16px;
  line-height: 1.4;
}

.warning-circle {
  width: 52px;
  height: 52px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.warning-circle svg {
  width: 26px;
  height: 26px;
  stroke: var(--ykk-blue);
}

.unverified-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

/* Contact Card */
.card-contact .contact-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--ykk-blue);
}

.contact-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.contact-sub {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background-color: var(--blue-tint-bg);
  border: 1px solid var(--blue-tint-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  transition: background-color var(--transition-speed);
}

.contact-row:hover {
  background-color: #e2f2fc;
}

.contact-icon {
  font-size: 18px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--ykk-blue);
}

/* Form Styles */
.card-form .form-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.card-form .form-card-sub {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 20px;
}

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

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

.input-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.input-label .required {
  color: #c0392b;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font-family);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  outline: none;
  background-color: #ffffff;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-control:focus {
  border-color: var(--ykk-blue);
  box-shadow: 0 0 0 3px rgba(0, 123, 182, 0.12);
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
}

.phone-input-wrapper:focus-within {
  border-color: var(--ykk-blue);
  box-shadow: 0 0 0 3px rgba(0, 123, 182, 0.12);
}

.phone-prefix {
  padding: 12px 12px;
  background-color: var(--bg-page);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  border-right: 1px solid var(--border-card);
}

.phone-control {
  border: none;
  border-radius: 0;
}

.phone-control:focus {
  box-shadow: none;
}

.select-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237c8e9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.field-error {
  font-size: 12px;
  color: #c0392b;
  margin-top: 2px;
  font-weight: 500;
}

.btn-submit-sc {
  width: 100%;
  background-color: var(--ykk-blue);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-family);
  padding: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color var(--transition-speed);
}

.btn-submit-sc:hover {
  background-color: var(--ykk-blue-hover);
}

.form-success-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--blue-tint-bg);
  border: 1px solid var(--blue-tint-border);
  color: var(--ykk-blue);
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
