@font-face {
    font-family: "Helvetica Neue Heavy";
    src: url("../fonts/HelveticaNeueHeavy.otf") format("opentype");
    font-style: normal;
}

@font-face {
    font-family: "Helvetica Neue Bold";
    src: url("../fonts/HelveticaNeueBold.otf") format("opentype");
    font-style: normal;
}

@font-face {
    font-family: "Myriad Pro Regular";
    src: url("../fonts/MyriadPro-Regular_4.otf") format("opentype");
    font-style: normal;
}

@font-face {
    font-family: "Helvetica Medium";
    src: url("../fonts/HelveticaNeueMedium.otf") format("opentype");
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(to bottom, #f8f8f8 0%, #ffffff 100%);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Hide horizontal scrollbar */
body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.container {
    max-width: 430px;
    margin: 0 auto;
    background: url(../images/Bg\ Image\ 1.png);
    min-height: 100vh;
    background-position: center;
    position: relative;
    overflow-x: hidden;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

#loaderGif {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* Ensure it's above other content */
}

/* Header */
.header {
    padding: 10px;
    position: relative;
}

.hafele-logo {
    text-align: right;
    margin-bottom: 10px;
}

/* Shagun Section */
.shagun-section {
    text-align: center;
    padding: 10px;
    position: relative;
    margin-top: -2rem;
}

.decorative-line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}

/* Content Area */
.content-area {
    padding: 20px;
    min-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 400px);
    margin-bottom: 0rem;
}

.landing_page {
    padding: 20px;
    margin-bottom: 12rem;
}

.content-area::-webkit-scrollbar {
    display: none;
}

.page {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Landing Page */
.warranty-section {
    text-align: center;
    margin-bottom: -20px;
}

.register-text {
    font-family: "Helvetica Neue Heavy", sans-serif;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.warranty-title {
    font-family: "Helvetica Medium", sans-serif;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    background-image: linear-gradient(to right, #937032 0%, #BE7D2E 20%, #FCD765 49%, #BE7D2E 75%, #937032 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.warranty-subtitle {
    font-family: "Helvetica Medium", sans-serif;
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.start-btn {
    font-family: "Helvetica Neue Bold", sans-serif;
    background: #d32f2f;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.start-btn:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

.appliances-image {
    text-align: center;
    margin: 30px 0;
}

.appliances-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.info-icons {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    font-family: "Helvetica Medium", sans-serif;
}

.faq_img {
    width: 32px;
    height: 30px;
}

.info-item {
    text-align: center;
    flex: 1;
    cursor: pointer;
}

.info-item p {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

/* Registration Form */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: "Myriad Pro Regular", sans-serif;
    width: 100%;
    padding: 15px;
    border: none;
    background: #f1f3f4;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: #e8f0fe;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group select {
    font-family: "Myriad Pro Regular", sans-serif;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* Add Products Button */
.add-products-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.border-left,
.border-right {
    flex: 1;
    height: 2px;
    background: #EAEBEC;
}

.add-products-btn {
    font-family: "Myriad Pro Regular", sans-serif;
    padding: 12px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 15px;
}

.add-products-btn:hover {
    background: #e0e0e0;
    color: #333;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px;
    background: #f1f3f4;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    background: #e8f0fe;
}

.upload-text {
    color: #666;
    font-size: 16px;
}

.upload-icon {
    font-size: 18px;
    color: #666;
}

/* OTP Group */
.otp-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.otp-group input {
    flex: 1;
}

.resend-otp {
    background: transparent;
    border: 1px solid #dc2626;
    color: #dc2626;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resend-otp:hover {
    background: #dc2626;
    color: white;
}

/* Checkbox Groups */
.checkbox-group {
    margin: 10px 0;
    font-family: "Myriad Pro Regular", sans-serif;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    background-color: #dc2626;
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 3px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background: #dc2626;
    border-color: #dc2626;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-text {
    color: #333;
    flex: 1;
}

/* Submit Button */
.submit-btn-grp {
    display: block;
    margin: auto;
}

.submit-btn {
    font-family: "Helvetica Neue Bold", sans-serif;
    background: #dc2626;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    padding-left: 40px;
    padding-right: 40px;
}

.submit-btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.submit-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.submit-btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* OTP Message */
.otp-message {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.otp-message p {
    color: #1976d2;
    font-size: 14px;
    margin: 0;
}

/* Success Page */
.success-content {
    text-align: center;
    padding: 20px 0;
}

#successPage {
    background: #f0f0f0;
    border-radius: 5px;
}

.congratulations {
    font-family: "Helvetica Neue Heavy", sans-serif;
    font-size: 28px;
    color: #d32f2f;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.user-name {
    font-family: "Helvetica Neue Bold", sans-serif;
    font-size: 24px;
    color: #333;
    font-weight: bold;
    margin-bottom: 5px;
    background: #f0f0f0;
    padding: 10px;
    border-radius: 8px;
}

.success-message {
    font-family: "Myriad Pro Regular", sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.registration-id-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
}

.registration-id-text strong {
    color: #171717;
    font-size: 18px;
}

.note-section {
    padding: 20px;
    border-radius: 8px;
    text-align: left;
}

.note-title {
    font-family: "Myriad Pro Regular", sans-serif;
    font-weight: bold;
    color: #171717;
    text-align: center;
    margin-bottom: 10px;
}

.note-content {
    font-family: "Myriad Pro Regular", sans-serif;
    font-size: 12px;
    text-align: center;
    color: #666;
    line-height: 1.4;
}

.note-content a {
    color: #333;
    /* text-decoration: none; */
}

/* Responsive Design */
@media (max-width: 375px) {
    .warranty-title {
        font-size: 28px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: block;
    opacity: 1;
}

/* Popup Modal */
.popup-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 350px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.popup-modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Popup Header */
.popup-header {
    background: #dc2626;
    padding: 20px;
    text-align: center;
    position: relative;
}

.popup-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 24px;
    color: #dc2626;
    font-weight: bold;
}

/* Popup Content */
.popup-content {
    padding: 25px;
    text-align: left;
}

.popup-content h3 {
    font-family: "Helvetica Neue Bold", sans-serif;
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.popup-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-content li {
    font-family: "Helvetica Medium", sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.popup-content li::before {
    content: "•";
    color: #dc2626;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.popup-image{
    width: 100%;
    margin-top: 5px;
    margin-left: -0.5px;
}

.product-fields{
    position: relative;
}

.remove-product-btn {
    position: absolute;
    top: 0;
    right: 5px;
    background: #c3c3c3;
    color: #3c3c3c;
    border: none;
    padding: 6px 12px;
    margin-top: 8px;
    border-radius: 6px;
    cursor: pointer;
}

.remove-product-btn:hover {
    background: #000000;
    color: white;
    transition: .3s;
}

/* FAQ specific styles */
.faq-item {
    margin-bottom: 20px;
    max-height: 20vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.faq-item h4 {
    font-family: "Helvetica Neue Bold", sans-serif;
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.faq-item p {
    font-family: "Helvetica Medium", sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Popup animations */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes popupFadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

.popup-modal.show {
    animation: popupFadeIn 0.3s ease forwards;
}

.popup-modal.hide {
    animation: popupFadeOut 0.3s ease forwards;
}

.footer{
    position: absolute;
    bottom: 0px;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    color: #fff;
}

.footer-text{
    font-family: "Helvetica Medium", sans-serif;
    font-size: 8px;
    color: #fff;
    line-height: 1.6;
}