/* Thank You Page Styles - Luxury Aesthetic */

/* Custom Fonts */
@font-face {
    font-family: 'Choose Elegant';
    src: url('fonts/CHOOSE ELEGANT Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Braven';
    src: url('fonts/BravenRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'Braven', Georgia, serif;
    background: #faf4dc;
    color: #928333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Elements */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(199, 189, 137, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-symbol {
    position: absolute;
    font-size: 24px;
    color: rgba(199, 189, 137, 0.3);
    animation: float 20s infinite ease-in-out;
}

.floating-symbol:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-symbol:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 5s;
}

.floating-symbol:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 10s;
}

.floating-symbol:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(20px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
        opacity: 0.5;
    }
}

/* Main Container */
.thank-you-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 90%;
    margin: 40px auto;
    padding: 60px;
    background: #fffff0;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(146, 131, 51, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Animation */
.success-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
}

.checkmark-circle {
    width: 100%;
    height: 100%;
    position: relative;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.checkmark {
    width: 100%;
    height: 100%;
}

.checkmark-circle-bg {
    stroke: #c7bd89;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke: #928333;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes strokeCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes strokeCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* Sparkles */
.sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    font-size: 20px;
    animation: sparkle 1.5s ease-out forwards;
    opacity: 0;
}

.sparkle-1 {
    top: -10px;
    left: -10px;
    animation-delay: 0.9s;
}

.sparkle-2 {
    top: -10px;
    right: -10px;
    animation-delay: 1s;
}

.sparkle-3 {
    bottom: -10px;
    left: -10px;
    animation-delay: 1.1s;
}

.sparkle-4 {
    bottom: -10px;
    right: -10px;
    animation-delay: 1.2s;
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(360deg) translateY(-20px);
    }
}

/* Content */
.thank-you-content {
    text-align: center;
}

.thank-you-title {
    font-family: 'Choose Elegant', serif;
    font-size: 48px;
    color: #928333;
    margin-bottom: 15px;
    letter-spacing: 2px;
    animation: fadeIn 0.8s ease-out 0.5s both;
}

.thank-you-subtitle {
    font-size: 18px;
    color: #a36d61;
    margin-bottom: 40px;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeIn 0.8s ease-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Confirmation Details */
.confirmation-details {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 40px 0;
    padding: 30px;
    background: rgba(199, 189, 137, 0.1);
    border-radius: 12px;
    animation: fadeIn 0.8s ease-out 0.7s both;
}

.confirmation-number,
.estimated-delivery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.confirmation-details .label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a36d61;
}

.confirmation-details .value {
    font-family: 'Choose Elegant', serif;
    font-size: 24px;
    color: #928333;
    font-weight: 500;
}

/* Divider */
.divider {
    margin: 40px 0;
    text-align: center;
    animation: fadeIn 0.8s ease-out 0.8s both;
}

.divider-symbol {
    font-size: 24px;
    color: #c7bd89;
}

/* What's Next Timeline */
.whats-next {
    margin: 50px 0;
    animation: fadeIn 0.8s ease-out 0.9s both;
}

.whats-next h2 {
    font-family: 'Choose Elegant', serif;
    font-size: 32px;
    color: #928333;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    padding-left: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 29px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: linear-gradient(to bottom, #c7bd89, transparent);
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.timeline-item.active {
    opacity: 1;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    width: 20px;
    height: 20px;
    background: #fffff0;
    border: 2px solid #c7bd89;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #928333;
    z-index: 1;
    flex-shrink: 0;
}

.timeline-item.active .timeline-marker {
    background: #928333;
    color: #fffff0;
    box-shadow: 0 0 0 6px rgba(146, 131, 51, 0.2);
}

.timeline-content {
    flex: 1;
    text-align: left;
}

.timeline-content h3 {
    font-family: 'Choose Elegant', serif;
    font-size: 20px;
    color: #928333;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Email Confirmation */
.email-confirmation {
    margin: 40px 0;
    padding: 25px;
    background: rgba(163, 109, 97, 0.1);
    border-radius: 12px;
    animation: fadeIn 0.8s ease-out 1s both;
}

.email-confirmation p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.email-confirmation strong {
    color: #928333;
}

.email-confirmation .note {
    font-size: 14px;
    color: #999;
    margin-top: 10px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    animation: fadeIn 0.8s ease-out 1.1s both;
}

.btn {
    padding: 15px 40px;
    font-family: 'Choose Elegant', serif;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #928333, #c7bd89);
    color: #fffff0;
    box-shadow: 0 4px 15px rgba(146, 131, 51, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(146, 131, 51, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #928333;
    border: 2px solid #928333;
}

.btn-secondary:hover {
    background: #928333;
    color: #fffff0;
}

/* Contact Support */
.contact-support {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(146, 131, 51, 0.2);
    animation: fadeIn 0.8s ease-out 1.2s both;
}

.contact-support p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #928333;
    transition: color 0.3s ease;
}

.contact-method:hover {
    color: #a36d61;
}

.contact-method .icon {
    font-size: 20px;
}

/* Social Share */
.social-share {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(146, 131, 51, 0.2);
    text-align: center;
    animation: fadeIn 0.8s ease-out 1.3s both;
}

.social-share p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(146, 131, 51, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #928333;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #928333;
    color: #fffff0;
    transform: translateY(-3px);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .thank-you-container {
        padding: 40px 20px;
        margin: 20px;
    }
    
    .thank-you-title {
        font-size: 36px;
    }
    
    .confirmation-details {
        flex-direction: column;
        gap: 30px;
    }
    
    .timeline {
        padding-left: 40px;
    }
    
    .timeline::before {
        left: 19px;
    }
    
    .timeline-marker {
        left: -30px;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 20px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .background-gradient,
    .floating-elements,
    .social-share,
    .action-buttons .btn-secondary {
        display: none;
    }
    
    .thank-you-container {
        box-shadow: none;
        max-width: 100%;
    }
}