/* Custom Styles for NDPS Realtech */

:root {
    --color-primary: #0f766e;
    --color-primary-dark: #0d5f58;
    --color-secondary: #fcd34d;
    --color-secondary-hover: #fbbf24;
}

/* Global Reset for Overflow */
html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-dark {
    background: rgba(15, 118, 110, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Pattern */
.hero-pattern {
    background-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23138f85' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Accordion Transition */
.accordion-content {
    transition: max-height 0.4s ease-out, padding 0.3s ease-out;
    overflow: hidden;
}

.accordion-btn {
    transition: background-color 0.2s ease;
}

.accordion-btn:hover {
    background-color: rgba(15, 118, 110, 0.05);
}

.accordion-btn .fa-chevron-down {
    transition: transform 0.3s ease-out;
}

/* Utility to ensure words break properly on small screens */
.break-words {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* =====================================================
   THANK YOU POPUP MODAL STYLES
   ===================================================== */

.thank-you-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.thank-you-overlay.active {
    opacity: 1;
    visibility: visible;
}

.thank-you-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.thank-you-overlay.active .thank-you-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.thank-you-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #64748b;
    font-size: 1rem;
}

.thank-you-close-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

/* Success Icon Animation */
.thank-you-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #14b8a6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(15, 118, 110, 0.35);
}

.thank-you-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    z-index: -1;
    opacity: 0.3;
    animation: pulse-ring 2s ease-out infinite;
}

.thank-you-icon i {
    font-size: 2.5rem;
    color: white;
    animation: check-bounce 0.6s ease-out 0.2s both;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes check-bounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.thank-you-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.thank-you-message {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.thank-you-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(15, 118, 110, 0.2);
}

.thank-you-highlight i {
    color: var(--color-primary);
    font-size: 1.25rem;
}

.thank-you-highlight span {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.thank-you-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.thank-you-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #14b8a6 100%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.35);
}

.thank-you-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.45);
}

.thank-you-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thank-you-btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Confetti Animation */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(400px) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .thank-you-modal {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .thank-you-icon {
        width: 70px;
        height: 70px;
    }

    .thank-you-icon i {
        font-size: 2rem;
    }

    .thank-you-title {
        font-size: 1.5rem;
    }

    .thank-you-message {
        font-size: 0.95rem;
    }
}