/* Gratis Produkttests - Frontend Styles */

:root {
    --gpt-primary: #667eea;
    --gpt-secondary: #764ba2;
    --gpt-pink-primary: #ec4899;
    --gpt-pink-secondary: #f97316;
    --gpt-success: #10b981;
    --gpt-error: #ef4444;
    --gpt-border: #e5e7eb;
    --gpt-bg-light: #f9fafb;
    --gpt-text-dark: #1f2937;
}

/* Form Wrapper */
.gpt-form-wrapper {
    max-width: 500px;
    margin: 40px auto;
    padding: 50px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
}

/* Form Styling */
.gpt-form {
    display: flex;
    flex-direction: column;
}

.gpt-form-group {
    margin-bottom: 28px;
}

.gpt-form-group label {
    display: block;
    font-weight: 600;
    color: var(--gpt-text-dark);
    margin-bottom: 10px;
    font-size: 15px;
}

/* Input Styling */
.gpt-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gpt-border);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    background: #fafbfc;
}

.gpt-input:focus {
    outline: none;
    border-color: var(--gpt-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.gpt-input::placeholder {
    color: #d1d5db;
}

/* Single Checkbox Group */
.gpt-terms-group {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--gpt-primary);
    margin-bottom: 30px !important;
}

.gpt-terms-group--pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(249, 115, 22, 0.05));
    border-left-color: var(--gpt-pink-primary);
}

.gpt-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.gpt-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--gpt-primary);
}

.gpt-checkbox-item label {
    margin: 0;
    font-weight: 400;
    color: var(--gpt-text-dark);
    font-size: 14px;
    line-height: 1.6;
    cursor: pointer;
}

.gpt-checkbox-item a {
    color: var(--gpt-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--gpt-primary);
}

.gpt-checkbox-item a:hover {
    opacity: 0.8;
}

/* Button */
.gpt-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.gpt-btn-primary {
    background: linear-gradient(135deg, var(--gpt-primary) 0%, var(--gpt-secondary) 100%);
    color: white;
    width: 100%;
    letter-spacing: 0.3px;
}

.gpt-btn-primary--pink {
    background: linear-gradient(135deg, var(--gpt-pink-primary) 0%, var(--gpt-pink-secondary) 100%);
}

.gpt-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.gpt-btn-primary--pink:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(236, 72, 153, 0.4);
}

.gpt-btn-primary:active {
    transform: translateY(-1px);
}

.gpt-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* "Once per account" notice */
.gpt-once-notice {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 28px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

.gpt-once-notice--pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(249, 115, 22, 0.08));
    border-color: rgba(236, 72, 153, 0.25);
}

/* Legal text below form */
.gpt-legal-text {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--gpt-border);
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.6;
}

.gpt-legal-text p {
    margin: 0 0 6px 0;
}

.gpt-legal-text a {
    color: #9ca3af;
    text-decoration: underline;
}

/* Messages (fallback) */
.gpt-message {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 10px;
    font-weight: 500;
    animation: gptSlideIn 0.3s ease;
}

.gpt-message.success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid var(--gpt-success);
}

.gpt-message.error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--gpt-error);
}

.gpt-message.info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

@keyframes gptSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Loading State */
.gpt-form.loading .gpt-btn-primary {
    pointer-events: none;
    opacity: 0.7;
}

/* =============================================
   SUCCESS MODAL
   ============================================= */
.gpt-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    animation: gptModalFadeIn 0.3s ease forwards;
}

@keyframes gptModalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.gpt-modal-box {
    background: white;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    animation: gptModalSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes gptModalSlideUp {
    from { transform: scale(0.9) translateY(20px); }
    to   { transform: scale(1) translateY(0); }
}

.gpt-modal-header {
    background: linear-gradient(135deg, var(--gpt-primary) 0%, var(--gpt-secondary) 100%);
    padding: 36px 30px 30px;
    text-align: center;
    color: white;
}

.gpt-modal-header--pink {
    background: linear-gradient(135deg, var(--gpt-pink-primary) 0%, var(--gpt-pink-secondary) 100%);
}

.gpt-modal-icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 12px;
    display: block;
    animation: gptBounce 0.6s 0.3s ease both;
}

@keyframes gptBounce {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.gpt-modal-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.gpt-modal-body {
    padding: 30px;
    text-align: center;
}

.gpt-modal-body p {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 10px;
}

.gpt-modal-steps {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.gpt-modal-steps-title {
    font-weight: 600;
    font-size: 12px;
    color: #374151;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.gpt-modal-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: #4b5563;
}

.gpt-modal-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gpt-primary), var(--gpt-secondary));
    color: white;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gpt-modal-step-num--pink {
    background: linear-gradient(135deg, var(--gpt-pink-primary), var(--gpt-pink-secondary));
}

.gpt-modal-close {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gpt-primary), var(--gpt-secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.gpt-modal-close--pink {
    background: linear-gradient(135deg, var(--gpt-pink-primary), var(--gpt-pink-secondary));
}

.gpt-modal-close:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .gpt-form-wrapper {
        padding: 30px 20px;
        margin: 20px 10px;
        border-radius: 12px;
    }

    .gpt-input {
        font-size: 16px;
        padding: 12px 14px;
    }

    .gpt-btn-primary {
        padding: 14px 24px;
        font-size: 15px;
    }

    .gpt-form-group {
        margin-bottom: 22px;
    }

    .gpt-terms-group {
        padding: 15px;
    }

    .gpt-checkbox-item label {
        font-size: 13px;
    }

    .gpt-modal-box {
        border-radius: 16px;
    }

    .gpt-modal-header {
        padding: 28px 20px 22px;
    }

    .gpt-modal-body {
        padding: 22px 20px;
    }

    .gpt-modal-title {
        font-size: 20px;
    }
}
