* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(45deg, #1d3557, #4a4e69);
    color: #f8f9fa;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

header {
    background: #2A9D8F;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 50px;
}

.registration-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    flex-grow: 1;
}

.registration-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    padding: 40px;
    color: #1d3557;
}

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

.registration-header h1 {
    font-size: 2.5rem;
    color: #1d3557;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.registration-header h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #F4A261;
    border-radius: 2px;
}

.registration-header p {
    font-size: 1.1rem;
    color: #4A4E69;
    margin-top: 10px;
}

.registration-form {
    display: grid;
    gap: 20px;
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d3557;
    display: flex;
    align-items: center;
}

.required::after {
    content: " *";
    color: #e63946;
}

.form-group input {
    padding: 14px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #2A9D8F;
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.2);
}

.form-group input::placeholder {
    color: #adb5bd;
}

.privacy-note {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 10px;
    text-align: center;
}

.privacy-note a {
    color: #2A9D8F;
    text-decoration: none;
}

.privacy-note a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-primary {
    background: #2A9D8F;
    color: white;
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.4);
    margin-top: 20px;
}

.btn-primary:hover {
    background: #e6914a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(244, 162, 97, 0.6);
}

.app-preview {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 20px;
}

.app-feature {
    display: flex;
    align-items: center;
    background: rgba(42, 157, 143, 0.1);
    padding: 12px 20px;
    border-radius: 30px;
    color: #1d3557;
    font-weight: 500;
}

.app-feature i {
    margin-right: 10px;
    color: #2A9D8F;
    font-size: 1.2rem;
}

footer {
    background: #1d3557;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 30px 0;
    font-size: 1rem;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    margin-top: 15px;
    font-size: 0.95rem;
    opacity: 0.7;
}

.confirmation-message {
    display: none;
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    color: #1d3557;
}

.confirmation-message h2 {
    color: #2A9D8F;
    margin-bottom: 20px;
    font-size: 2rem;
}

.confirmation-message p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.redirect-notice {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 20px;
    border-left: 4px solid #F4A261;
}

.loader {
    display: none;
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid rgba(42, 157, 143, 0.2);
    border-radius: 50%;
    border-top: 4px solid #2A9D8F;
    animation: spin 1s linear infinite;
}

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

.error-message {
    color: #e63946;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

@media (max-width: 768px) {
    .registration-card {
        padding: 30px 20px;
    }
    
    .registration-header h1 {
        font-size: 2rem;
    }
    
    .app-preview {
        flex-direction: column;
        align-items: center;
    }
}
/* PWA Install Notification Styles */
#install-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1d3557;
    color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 350px;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
}

#install-notification.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

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

.install-title {
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.install-title i {
    color: #F4A261;
    font-size: 1.7rem;
    background: rgba(244, 162, 97, 0.15);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-install {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-install:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

#install-notification p {
    font-size: 1.05rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 5px;
}

.install-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.install-btn,
.later-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.install-btn {
    background: #2A9D8F;
    color: white;
    box-shadow: 0 4px 15px rgba(42, 157, 143, 0.3);
}

.install-btn:hover {
    background: #248277;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 157, 143, 0.4);
}

.install-btn i {
    font-size: 1.1rem;
}

.later-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.later-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (min-width: 769px) {
    .header-container {
        flex-wrap: nowrap;
    }

    .logo {
        min-width: auto;
        justify-content: flex-start;
        margin-bottom: 0;
    }

    .nav-buttons-container {
        width: auto;
        justify-content: flex-end;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .problem-points,
    .solution-grid,
    .offering-list,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Make header buttons smaller on mobile */
    .nav-buttons .btn {
        padding: 10px 15px;
        font-size: 0.95rem;
        min-width: auto;
    }

    /* Adjust notification for mobile */
    #install-notification {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 20px;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .problem-card,
    .solution-card,
    .offering-item,
    .stat-card {
        padding: 20px;
    }

    .faq-question {
        padding: 20px;
        font-size: 1.1rem;
    }

    .faq-answer {
        padding: 20px;
    }

    .install-buttons {
        flex-direction: column;
    }

    .install-btn,
    .later-btn {
        width: 100%;
    }
}
/* Ensure modal text is readable */
#installHelpModal,
#installHelpModal * {
  color: #222 !important;   /* dark text by default */
}

#installHelpModal h3,
#installHelpModal h4 {
  color: #111 !important;   /* even darker for headings */
  font-weight: 600;
}

#installHelpModal a {
  color: #2b6cb0;           /* blue links for clarity */
  text-decoration: underline;
}
/* ---------- Install Help modal layout & contrast fixes ---------- */
#installHelpModal,
#installHelpModal * {
  color: #1f2937; /* readable default text */
}

#installHelpModal .cr-modal__dialog {
  max-width: 720px;
  width: calc(100% - 32px);
  padding: 22px 22px 18px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

#installHelpModal .cr-modal__title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: #111827;
}

#installHelpModal .install-hint#helpHint {
  margin: 2px 0 10px;
  font-size: .95rem;
  color: #374151;
}

/* Buttons: full width, better contrast, consistent spacing */
#installHelpModal .install-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 8px 0 6px;
}

#installHelpModal .btn {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: .2px;
}

/* Primary install button */
#installHelpModal #helpInstallBtn {
  background: #667eea;       /* vivid */
  color: #fff;
}

/* Secondary button should NOT look disabled */
#installHelpModal #helpHowBtn {
  background: #e5e7eb;       /* light neutral */
  color: #111827;
  border: 1px solid #d1d5db;
}
#installHelpModal #helpHowBtn:hover {
  background: #f3f4f6;
}

/* Steps block: readable spacing */
#installHelpModal .install-steps {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  display: grid;
  grid-template-columns: 1fr; /* stack by default */
  gap: 14px;
}

#installHelpModal h4 {
  margin: 0 0 6px;
  font-weight: 700;
  color: #111827;
}

#installHelpModal ol {
  margin: 0 0 2px 1.25rem;
  padding: 0;
  line-height: 1.45;
}

/* Unsupported browser note style */
#installHelpModal #helpBrowserNote {
  margin-top: 8px;
  color: #9b1c1c;            /* warning tone */
  font-weight: 600;
}

/* Larger screens: 3-column steps grid */
@media (min-width: 760px) {
  #installHelpModal .install-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
