:root {
    --white: #FFFFFF;
    --dark-purple: #412234;
    --medium-purple: #6D466B;
    --light-purple: #B49FCC;
    --pale-pink: #EAD7D7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--medium-purple) 0%, var(--dark-purple) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(109, 70, 107, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(180, 159, 204, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(234, 215, 215, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--pale-pink);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(65, 34, 52, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 48px;
    max-width: 600px;
    width: 100%;
    animation: slideUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--dark-purple), var(--medium-purple), var(--light-purple), var(--pale-pink), var(--dark-purple));
    background-size: 400% 400%;
    border-radius: 20px;
    z-index: -1;
    animation: gradient 4s ease infinite;
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--light-purple), var(--medium-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: bounceIn 1s ease-out 0.3s both;
    box-shadow: 0 20px 40px rgba(109, 70, 107, 0.3);
}

.success-icon::before {
    content: '✓';
    font-size: 4em;
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.header {
    margin-bottom: 40px;
}

.header h1 {
    color: var(--dark-purple);
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--medium-purple), var(--dark-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 0.8s ease-out 0.5s both;
}

.header p {
    color: var(--medium-purple);
    font-size: 1.2em;
    line-height: 1.7;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
    animation: fadeIn 1s ease-out 0.9s both;
}

.info-card {
    background: rgba(234, 215, 215, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--pale-pink);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(65, 34, 52, 0.15);
    background: rgba(234, 215, 215, 0.4);
    border-color: var(--light-purple);
}

.info-card .icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
}

.info-card h3 {
    color: var(--dark-purple);
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: 700;
}

.info-card p {
    color: var(--medium-purple);
    font-size: 1em;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    animation: slideInUp 0.8s ease-out 1.1s both;
}

.btn {
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--medium-purple) 0%, var(--dark-purple) 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(65, 34, 52, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(65, 34, 52, 0.4);
}

.btn-secondary {
    background: rgba(234, 215, 215, 0.3);
    backdrop-filter: blur(10px);
    color: var(--dark-purple);
    border: 2px solid var(--light-purple);
}

.btn-secondary:hover {
    background: rgba(234, 215, 215, 0.5);
    transform: translateY(-2px);
    border-color: var(--medium-purple);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline {
    background: rgba(234, 215, 215, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid var(--pale-pink);
    animation: fadeIn 1s ease-out 1.3s both;
}

.timeline h3 {
    color: var(--dark-purple);
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.timeline-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.timeline-item {
    flex: 1;
    text-align: center;
    min-width: 150px;
}

.timeline-item .number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--light-purple), var(--medium-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
}

.timeline-item h4 {
    color: var(--medium-purple);
    font-size: 1em;
    margin-bottom: 5px;
    font-weight: 600;
}

.timeline-item p {
    color: var(--dark-purple);
    font-size: 0.9em;
    line-height: 1.4;
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--pale-pink);
    color: var(--medium-purple);
    font-size: 0.95em;
    animation: fadeIn 1s ease-out 1.5s both;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
    color: var(--light-purple);
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    font-size: 2em;
}

.floating-element:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
    font-size: 1.5em;
}

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
    font-size: 1.8em;
}

.floating-element:nth-child(4) {
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
    font-size: 2.2em;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 32px 24px;
        margin: 15px;
    }

    .header h1 {
        font-size: 2.5em;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .timeline-items {
        flex-direction: column;
        gap: 30px;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }
}

/* Enhanced particle effects with purple theme */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--light-purple);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
}

.particle:nth-child(odd) {
    background: var(--medium-purple);
}

.particle:nth-child(even) {
    background: rgba(234, 215, 215, 0.8);
}

/* Success message enhancement */
.success-message {
    background: linear-gradient(135deg, rgba(180, 159, 204, 0.2), rgba(234, 215, 215, 0.3));
    border: 1px solid var(--light-purple);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    color: var(--dark-purple);
}

/* Additional styles for index.html form */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-purple);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--pale-pink);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    color: var(--dark-purple);
    outline: none;
    font-weight: 500;
    font-family: inherit;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder {
    color: rgba(109, 70, 107, 0.6);
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
    border-color: var(--medium-purple);
    background: var(--white);
    box-shadow: 
        0 0 0 3px rgba(109, 70, 107, 0.1),
        0 4px 12px rgba(65, 34, 52, 0.1);
    transform: translateY(-1px);
}

select {
    cursor: pointer;
    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='%236D466B' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 48px;
    color: var(--dark-purple);
}

select option {
    background-color: var(--white);
    color: var(--dark-purple);
    padding: 10px;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--medium-purple) 0%, var(--dark-purple) 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 20px rgba(65, 34, 52, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.submit-btn:hover {
    transform: translateY(-2px) scale(1.01);
    background-position: 100% 0;
    box-shadow: 
        0 12px 25px rgba(65, 34, 52, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(-1px) scale(1.01);
}

.required {
    color: var(--medium-purple);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.privacy-notice {
    background: rgba(234, 215, 215, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 18px;
    margin-top: 25px;
    border-left: 4px solid var(--light-purple);
    font-size: 0.9em;
    color: var(--dark-purple);
    border: 1px solid var(--pale-pink);
}

/* Loading animation */
.loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    border: 3px solid rgba(109, 70, 107, 0.3);
    border-top: 3px solid var(--medium-purple);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced input validation styles */
input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

input:valid:not(:focus):not(:placeholder-shown) {
    border-color: var(--light-purple);
    box-shadow: 0 0 0 3px rgba(180, 159, 204, 0.1);
}

/* Floating particles animation with purple theme */
@keyframes floatUp {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.animate-in {
    animation: slideInUp 0.8s ease-out both;
}
