/* ─────────── CSS variables & reset ─────────── */
:root {
    --green: #588157;
    --green-dk: #456b45;
    --card-w: 420px;          /* desktop card width  */
    --pad: 28px;              /* desktop padding     */
    --fs: 16px;               /* base font-size      */
}

@media(max-width: 500px) {
    :root { 
        --card-w: 95vw; 
        --pad: 18px; 
        --fs: 15px; 
    }
}

* {
    box-sizing: border-box;
}

body {
    font-family: Poppins, sans-serif;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-size: var(--fs);
    padding: 12px;
    cursor: default;
}

.container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-container {
    background: #fff;
    width: var(--card-w);
    padding: var(--pad);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    text-align: center;
    user-select: none;
    transition: all 0.5s ease;
}

/* Success container styling */
.success-container {
    background-color: #f9fff9;
    border: 1px solid #d4edda;
    box-shadow: 0 4px 20px rgba(88, 129, 87, 0.15);
    transition: all 0.5s ease;
}

h1 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
    font-size: 1.5em;
}

p {
    margin-bottom: 20px;
    color: #555;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #444;
}

input {
    width: 100%;
    font-size: 1em;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    margin-top: 5px;
    cursor: text;
    user-select: text;
}

input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(88, 129, 87, 0.2);
}

input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

button {
    background: var(--green);
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}

button:hover:not(:disabled) {
    background-color: var(--green-dk);
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    text-align: center;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    text-align: center;
}

.product-info {
    background-color: #e8f4fd;
    color: #0c5460;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: left;
    line-height: 1.5;
    font-size: 0.95em;
    cursor: default;
    user-select: none;
}

.info-label {
    font-weight: 600;
    cursor: default;
}

.info-value {
    user-select: text;
    cursor: text;
}

.helper-text {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

.disclaimer-text {
    font-size: 0.85em;
    color: #666;
    margin-top: 15px;
    line-height: 1.4;
    text-align: center;
}

/* FAQ Styles */
.faq-container {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.faq-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.faq-item h3 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #333;
    font-weight: 600;
}

.faq-item p {
    margin: 0;
    font-size: 0.9em;
    color: #555;
}

.faq-item a {
    text-decoration: none;
    font-weight: 500;
}

.faq-item a:hover {
    text-decoration: underline;
}

.logo {
    width: 120px;
    margin-bottom: 18px;
    pointer-events: none;
}

a {
    cursor: pointer;
    user-select: text;
}

/* Checkmark animation styles */
.checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
}

.checkmark-svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: var(--green);
    stroke-miterlimit: 10;
    box-shadow: 0 0 0 rgba(88, 129, 87, 0.4);
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--green);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0 0 0 30px rgba(88, 129, 87, 0.1);
    }
}

/* Thank you screen styles */
.thank-you-screen {
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 0.5s ease-in-out;
}

.thank-you-screen h2 {
    color: var(--green);
    margin-bottom: 20px;
    font-size: 1.8em;
}

.thank-you-screen p {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #444;
}

.redirect-message {
    margin: 25px 0;
    font-size: 0.9em;
    color: #666;
}

.return-button {
    display: inline-block;
    background: var(--green);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.return-button:hover {
    background-color: var(--green-dk);
    text-decoration: none;
}

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

/* Form transitions */
#correction-form {
    transition: opacity 0.5s ease;
} 