body {
    background-color: #000;
    background-image: url('https://cdn.prod.website-files.com/60be63e971246918d5e7bbcc/6787da8535626fd604972b53_Budget-bg-new1.avif');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    font-family: 'Sofia Pro ExtraLight', Arial, sans-serif;
    color: #FFFFFF;
}

@font-face {
    font-family: 'Sofia Pro ExtraLight';
    src: url('/fonts/sofia-pro/Sofia Pro ExtraLight Az.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Sofia Pro ExtraLight Az";
    src: url("./fonts/Sofia Pro ExtraLight Az.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    /* Adjust as needed */
}

/* Header Styles */
.header-container {
    padding-top: 120px;
    padding-bottom: 40px;
    text-align: center;
    margin: 0;
}

.main-title {
    font-size: 76px;
    font-weight: 200;
    margin: 0 0 40px 0;
    color: #10212A;
}

.subtitle {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 460px;
    color: #10212A;
}

.description {
    font-size: 22px;
    font-weight: 200;
    line-height: 1.4;
    max-width: 400px;
    margin: 0 auto;
    color: #10212A;
    text-align: center;
}

/* Container and Section Styles */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.07));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
}

.footer-container {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

.footer-logo {
    position: static;
    margin: 20px auto;
    display: block;
    width: 50px;
    height: 50px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

@media (max-width: 897px) {
    .footer-logo {
        bottom: 10px;
    }
}

.section {
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section p {
    margin: 10px 0 20px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.5;
}

/* Overriding Chrome/Edge/Safari autofill highlight */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.08) inset !important;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.08) inset !important;
  -webkit-text-fill-color: #fff !important;
  transition: background-color 5000s ease-in-out 0s;
}


/* Form Elements */
input[type="text"],
textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

input[type="text"]::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #189BA7;
    background: rgba(255, 255, 255, 0.12);
}

/* Button Styles */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button-group button {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 24px;
    margin: 5px 10px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.button-group button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.button-group button:active {
    background: #189ba7;
    color: #ffffff;
    border-color: #189BA7;
}

.button-group button.selected {
    background: #189BA7;
    color: #ffffff;
    border-color: #189BA7;
}

/* Main Action Button */
.wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
}

.button {
    display: block;
    width: 320px;
    max-width: 100%;
    margin: 0 auto;
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
    transform: translateZ(0);
    text-decoration: none;
    box-sizing: border-box;
    font-size: 24px;
    font-weight: normal;
    box-shadow: 0 9px 18px rgba(0, 0, 0, 0.2);
    text-align: center;
    border-radius: 50px;
    padding: 26px;
    color: white;
    background: #189BA7;
    transition: all 0.2s ease-out 0s;
}

.recommendation-charcoal {
    background: rgba(54, 54, 54, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    font-size: 16px;
    line-height: 1.5;
    overflow: auto;
}

/* Close Button for the result card */
.close-recommendation {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}
#resultCard[style*="display: block"] .close-recommendation {
    display: block;
}

/* NEW: Close Button for the attribution overlay (always visible within the overlay) */
/* CHANGED: This ensures the close button only appears when the overlay is shown. */
.close-attribution { /* CHANGED */
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    color: white;
}

.close-recommendation svg,
.close-attribution svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: white;
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.close-recommendation:hover svg,
.close-attribution:hover svg {
    stroke: #ffcc00;
}

/* Loading Overlay */
#loadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #122E3F;
    opacity: 0.8;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: 24px;
    justify-content: center;
    align-items: center;
    z-index: 10;
    flex-direction: column;
    text-align: center;
}

#loadingOverlay .lds-roller {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.lds-roller {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-roller div {
    animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 40px 40px;
}

.lds-roller div:after {
    content: " ";
    display: block;
    position: absolute;
    width: 7.2px;
    height: 7.2px;
    border-radius: 50%;
    background: currentColor;
    margin: -3.6px 0 0 -3.6px;
}

.lds-roller div:nth-child(1) {
    animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
    top: 62.62742px;
    left: 62.62742px;
}
.lds-roller div:nth-child(2) {
    animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
    top: 67.71281px;
    left: 56px;
}
.lds-roller div:nth-child(3) {
    animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
    top: 70.90963px;
    left: 48.28221px;
}
.lds-roller div:nth-child(4) {
    animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
    top: 72px;
    left: 40px;
}
.lds-roller div:nth-child(5) {
    animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
    top: 70.90963px;
    left: 31.71779px;
}
.lds-roller div:nth-child(6) {
    animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
    top: 67.71281px;
    left: 24px;
}
.lds-roller div:nth-child(7) {
    animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
    top: 62.62742px;
    left: 17.37258px;
}
.lds-roller div:nth-child(8) {
    animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
    top: 56px;
    left: 12.28719px;
}

@keyframes lds-roller {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loadingOverlay p {
    font-size: 20px;
    margin: 0;
    padding: 0 40px;
}

/* Result Card */
#resultCard {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 35px;
    margin-top: 20px;
    text-align: left;
    box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Recommendation Card Typography */
#recommendationContent h1 {
    font-size: 32px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

#recommendationContent h2 {
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    margin: 32px 0 12px 0;
    letter-spacing: -0.01em;
}

#recommendationContent p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 16px 0;
}

#recommendationContent ul {
    margin: 0 0 16px 0;
    padding-left: 20px;
}

#recommendationContent li {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    padding-left: 8px;
}

/* Recommendation Content Styles */
.recommendation-content {
  max-width: 800px;
  margin: 0 auto;
}

.recommendation-content header {
  margin-bottom: 40px;
}

.recommendation-content header h1 {
  font-size: 36px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

.recommendation-main {
  font-size: 18px !important;
  line-height: 1.8 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 400;
}

.recommendation-details {
  margin-bottom: 32px;
}

.recommendation-details h2 {
  font-size: 24px;
  color: #189BA7;
  margin-bottom: 16px;
  font-weight: 400;
}

.recommendation-details p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.pros-cons-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.benefits-list, .drawbacks-list {
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 768px) {
  .pros-cons-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .recommendation-content header {
    margin-bottom: 32px;
  }
}

/* Memo Section Styles */
.memo-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}

.memo-button {
  background: rgba(24, 155, 167, 0.9);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 15px 30px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 250px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.memo-button:hover {
  background: rgba(24, 155, 167, 1);
  transform: translateY(-2px);
}

#hangUpButton {
  background: rgba(220, 53, 69, 0.9);
}

#hangUpButton:hover {
  background: rgba(220, 53, 69, 1);
}

.slide-to-answer-wrapper {
  width: 250px;
  height: 50px;
  position: relative;
}

.slide-to-answer {
  display: none; /* Start hidden */
  position: absolute;
  transform: translateY(-50%);
  z-index: 100;
  margin: 0;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 32px;
  height: 64px;
  width: 256px;
  overflow: hidden;
  cursor: pointer;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.1);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Show slide when button is clicked */
.slide-to-answer[style*="display: block"] {
    display: block;
}

.slide-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: 74px;
  justify-content: flex-start;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  z-index: 0;
}

.slide-thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 100%;
  background: #22c55e; /* Green-500 for initial state */
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease-out;
  z-index: 1;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  touch-action: none;
}

.phone-icon {
  width: 24px;
  height: 24px;
  stroke: white;
}

.chevron-container {
  display: none;
}

.slide-thumb {
  left: 2px; /* Reset position */
}

.memo-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  margin-top: 20px;
  position: relative;
  display: none;
}

#memoText {
  color: white;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .memo-button {
    width: 100%;
    max-width: 250px;
  }

  .slide-to-answer-wrapper {
    width: 100%;
    max-width: 250px;
  }
}

/* Mobile Styles */
@media (max-width: 897px) {
    body {
        padding: 10px;
    }

    .container {
        width: 100%;
        margin: 20px 0;
        padding: 0;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
    }

    .section {
        margin: 0 auto 20px auto;
        padding: 20px;
        width: calc(100% - 40px);
        max-width: 500px;
    }

    .header-container {
        padding-top: 140px;
        text-align: center;
        margin: 0 auto;
    }

    .main-title {
        font-size: 64px;
        font-weight: 200;
        margin: 0 0 10px 0;
    }

    .subtitle {
        font-size: 24px;
        font-weight: 200;
        margin: 0 0 20px 0;
    }

    .description {
        font-size: 16px;
        padding: 0 20px;
        line-height: 1.6;
        max-width: 600px;
        margin: 0 auto 40px auto;
        text-align: center;
    }

    .button-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .button-group button {
        width: 100%;
        margin: 0;
        padding: 15px;
    }

    input[type="text"],
    textarea {
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 0.9);
        width: calc(100% - 30px);
        font-size: 16px !important;
    }

    input[type="text"]:focus,
    textarea:focus {
        background: rgba(0, 0, 0, 0.6);
    }

    .button {
        width: calc(100% - 40px);
        max-width: none;
        margin: 20px auto;
    }

    .copy-icon {
        opacity: 1;
        position: absolute;
        bottom: 10px;
        right: 10px;
        color: rgba(255, 255, 255, 0.6);
    }

    .attribution-content {
        margin: 20px;
        padding: 20px;
    }

    /* Mobile slide-to-answer adjustments */
    .slide-to-answer {
        position: relative;
        width: calc(100% - 40px);
        max-width: 256px;
        left: 50%;
        transform: translateX(-50%);
        top: 20px;
        margin-bottom: 40px;
    }

    /* Hide role play button when slide is shown */
    #rolePlayButton.clicked {
        visibility: hidden;
    }

    /* Adjust memo button container for mobile */
    .memo-button-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        min-height: 120px; /* Add space for the slide element */
    }

    /* Keep the chevron container in place */
    .chevron-container {
        left: 64px;
    }

    .slide-to-answer-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 40px; /* Increase margin to separate from the memo button */
      }

    #rolePlayButton {
        width: 100%;
        max-width: 256px;
    }
}

/* Base slide-to-answer styles */
.slide-to-answer {
    display: none; /* Start hidden */
    position: absolute;
    transform: translateY(-50%);
    z-index: 100;
    margin: 0;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 32px;
    height: 64px;
    width: 256px;
    overflow: hidden;
    cursor: pointer;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Show slide when button is clicked */
.slide-to-answer[style*="display: block"] {
    display: block;
}

.slide-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: 74px;
  justify-content: flex-start;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  z-index: 0;
}

.chevron-container {
  position: absolute;
  left: 64px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
  color: rgba(255, 255, 255, 0.3);
  z-index: 0;
}

.chevron {
  opacity: 0.5;
}

.slide-thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 100%;
  background: #22c55e; /* Green-500 for initial state */
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease-out;
  z-index: 1;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  touch-action: none;
}

.phone-icon {
  color: white;
}

.sliding .slide-thumb {
  transition: none;
}

.success-message {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #dc2626; /* Red-600 */
  color: white;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease-out;
  z-index: 2;
}

.answered {
  background: #dc2626; /* Red-600 */
}

.answered .slide-thumb {
  background: #dc2626; /* Red-600 */
}

/* Add styles for hang up icon */
.hang-up-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dc2626; /* Red-600 */
  color: white;
  opacity: 0;
  pointer-events: none; /* Disable interaction when not visible */
  transform: translateY(100%);
  transition: all 0.3s ease-out;
  z-index: 2;
}

.answered .hang-up-icon {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto; /* Enable interaction when visible */
}

/* Add these styles */
.connecting-spinner {
  /* Add spinner animation */
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

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

#realtimeConnectingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 1000;
}

#speakingIndicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #666;
  transition: background-color 0.2s;
}

#speakingIndicator.active {
  background: #22c55e;
}

/* Ensure the memo section has proper spacing */
.memo-section {
  position: relative;
  margin: 20px 0;
  clear: both;
}

/* Update role play button positioning */
#rolePlayButton {
  position: relative;
  z-index: 99;
}

/* Add this near your other slide-related styles */
body.sliding {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: grabbing;
    overflow: hidden;
}
