@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

header .container {
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

header p {
    font-size: 1.4rem;
    opacity: 0.95;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

main {
    padding: 3rem 0;
}

.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 4rem 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
}

.hero h2 {
    color: #1a1a1a;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero > p {
    font-size: 1.3rem;
    color: #6b7280;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.6;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature {
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature:hover::before {
    transform: translateX(0);
}

.feature h3 {
    color: #1a1a1a;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.feature p {
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 400;
}

.cta-section {
    margin-top: 3rem;
}

.cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.5rem 4rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3), 0 0 0 0 rgba(102, 126, 234, 0.5);
    margin-bottom: 1.5rem;
    display: inline-block;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.cta-button::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.5s;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.4), 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-2px);
}

.price {
    font-size: 1.4rem;
    color: #059669;
    font-weight: 700;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.order-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.05);
    margin-bottom: 3rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.order-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
}

.order-form h2 {
    color: #1a1a1a;
    margin-bottom: 2.5rem;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
}

.form-group input {
    width: 100%;
    padding: 1.2rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.2s ease;
    background: #ffffff;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover:not(:focus) {
    border-color: #d1d5db;
}

.consent {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.consent label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    line-height: 1.6;
}

.consent input[type="checkbox"] {
    margin-right: 0.8rem;
    width: auto;
    transform: scale(1.2);
    accent-color: #667eea;
}

.consent a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.consent a:hover {
    text-decoration: underline;
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    border: none;
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
}

.submit-button::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.5s;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(5, 150, 105, 0.4);
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:active {
    transform: translateY(-1px);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.result-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.05);
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.result-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
}

.result-section h2 {
    color: #1a1a1a;
    margin-bottom: 2.5rem;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.credit-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.8rem;
    font-weight: 800;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.score-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: rotate 3s linear infinite;
}

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

.score-info {
    text-align: left;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.score-info h3 {
    color: #1a1a1a;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.score-info p {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 400;
}

footer {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    color: white;
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin-bottom: 0.5rem;
    font-weight: 400;
}

footer small {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    header {
        padding: 2rem 0;
    }

    header h1 {
        font-size: 2.4rem;
    }

    header p {
        font-size: 1.2rem;
    }

    .hero {
        padding: 3rem 2rem;
        margin-bottom: 2rem;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero > p {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .feature {
        padding: 2rem 1.5rem;
    }

    .cta-button {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }

    .order-form {
        padding: 2rem;
    }

    .order-form h2 {
        font-size: 1.9rem;
        margin-bottom: 2rem;
    }

    .credit-score {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .score-circle {
        width: 160px;
        height: 160px;
        font-size: 2.4rem;
    }

    .score-info {
        text-align: center;
    }

    .score-info h3 {
        font-size: 1.6rem;
    }

    main {
        padding: 2rem 0;
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

.error {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    padding: 1.2rem;
    border-radius: 12px;
    margin: 1rem 0;
    text-align: center;
    font-weight: 500;
    border: 1px solid rgba(220, 38, 38, 0.2);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.2);
}

.success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    padding: 1.2rem;
    border-radius: 12px;
    margin: 1rem 0;
    text-align: center;
    font-weight: 500;
    border: 1px solid rgba(5, 150, 105, 0.2);
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.2);
}

.form-group input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.form-group input[type="date"] {
    color-scheme: light;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: opacity(0.6);
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    filter: opacity(1);
}

.payment-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    margin-bottom: 3rem;
}

.payment-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
}

.payment-form h2 {
    color: #1a1a1a;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
}

.payment-summary {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
}

.payment-summary p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

#payment-element {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#payment-errors {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    padding: 1.2rem;
    border-radius: 12px;
    margin: 1rem 0;
    text-align: center;
    font-weight: 500;
    border: 1px solid rgba(220, 38, 38, 0.2);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.2);
    display: none;
}

.back-button {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.3);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(107, 114, 128, 0.4);
}

.back-button:active {
    transform: translateY(-1px);
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

.hidden {
    display: none !important;
}

.security-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #0c4a6e;
}

.security-info p {
    margin: 0;
    text-align: center;
}

.security-info strong {
    color: #0369a1;
}

@media (max-width: 768px) {
    .payment-form {
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .payment-form h2 {
        font-size: 1.9rem;
        margin-bottom: 1.5rem;
    }

    #payment-element {
        margin: 1.5rem 0;
        padding: 1.2rem;
    }

    .payment-summary {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .payment-summary p {
        font-size: 1.1rem;
    }
}