/* Trial Page Specific Styles */
.trial-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.trial-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.trial-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.trial-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

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

.trial-left {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.trial-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.4) 0%, transparent 50%);
    animation: backgroundPulse 20s ease-in-out infinite;
}

.trial-left::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
    pointer-events: none;
}

@keyframes backgroundPulse {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-10%, -10%) rotate(5deg); }
}

.back-link {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    opacity: 0.9;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-5px);
}

.trial-info {
    position: relative;
    z-index: 1;
}

.trial-info h1 {
    font-size: 2.rem;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trial-info > p {
    opacity: 0.95;
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.6;
    animation: fadeInDown 0.8s ease-out 0.4s both;
}

.trial-benefits {
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out 0.6s both;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: transparent;
}

.benefit-item:hover {
    background: transparent;
    transform: translateX(10px);
}

.benefit-item i {
    font-size: 28px;
    margin-top: 3px;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.benefit-item strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.benefit-item span {
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Testimonials Carousel */
.testimonials-carousel {
    margin-top: 30px;
    overflow: hidden;
    position: relative;
    cursor: grab;
}

.testimonials-carousel:active {
    cursor: grabbing;
}

.testimonials-track {
    display: flex;
    gap: 20px;
    width: max-content;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 2));
    }
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 380px;
    max-width: 380px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-card i {
    font-size: 35px;
    opacity: 0.4;
    margin-bottom: 20px;
    display: block;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: white;
}

.testimonial-author {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: white;
}

.testimonial-author span {
    opacity: 0.85;
    font-size: 0.9rem;
    color: white;
}

.trial-right {
    padding: 60px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9ff 100%);
    position: relative;
}

.trial-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.trial-form-container {
    animation: fadeIn 0.8s ease-out 0.3s both;
}

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

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.form-header-icon i {
    font-size: 40px;
    color: white;
}

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #1a1a2e;
    font-weight: 700;
}

.form-header p {
    color: #666;
    font-size: 1.05rem;
}

.trial-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
    animation: fadeInUp 0.6s ease-out both;
    animation-delay: calc(var(--item-index, 0) * 0.1s);
}

.form-group:nth-child(1) { --item-index: 1; }
.form-group:nth-child(2) { --item-index: 2; }
.form-group:nth-child(3) { --item-index: 3; }
.form-group:nth-child(4) { --item-index: 4; }
.form-group:nth-child(5) { --item-index: 5; }
.form-group:nth-child(6) { --item-index: 6; }

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.form-group label i {
    color: #667eea;
    font-size: 1.1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e8ebf5;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9ff;
    color: #1a1a2e;
}

.form-group input:hover,
.form-group select:hover {
    border-color: #d0d5e8;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12),
                0 4px 12px rgba(102, 126, 234, 0.08);
    background: white;
    transform: translateY(-2px);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

.form-group input::placeholder {
    color: #999;
}

.checkbox-group {
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: normal;
    cursor: pointer;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-text {
    line-height: 1.6;
    color: #444;
}

.checkbox-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.checkbox-text a:hover {
    text-decoration: underline;
    color: #764ba2;
}

.form-note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-note i {
    color: #10b981;
    font-size: 1.1rem;
}

.trial-form .btn-primary {
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.trial-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.trial-form .btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.trial-form .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.trial-form .btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

/* Success Modal */
.success-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.success-modal.show {
    display: flex;
}

.success-content {
    background: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    animation: modalSlideIn 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success), #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon i {
    font-size: 40px;
    color: white;
}

.success-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.success-content p {
    color: var(--gray);
    margin-bottom: 30px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 992px) {
    .trial-page {
        padding: 20px 10px;
    }
    
    .trial-container {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }
    
    .trial-left {
        padding: 40px 30px;
        order: 2;
    }
    
    .trial-right {
        padding: 40px 30px;
        order: 1;
    }
    
    .trial-info h1 {
        font-size: 1.8rem;
    }
    
    .trial-info > p {
        font-size: 1rem;
    }
    
    .benefit-item {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .benefit-item i {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    
    .benefit-item strong {
        font-size: 1.05rem;
    }
    
    .benefit-item span {
        font-size: 0.9rem;
    }
    
    .testimonial-card {
        min-width: 300px;
        max-width: 300px;
        padding: 25px;
    }
    
    .testimonial-card p {
        font-size: 0.95rem;
    }
    
    .form-header-icon {
        width: 70px;
        height: 70px;
    }
    
    .form-header-icon i {
        font-size: 35px;
    }
    
    .form-header h2 {
        font-size: 1.6rem;
    }
    
    .form-header p {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .trial-page {
        padding: 15px 8px;
        align-items: flex-start;
    }
    
    .trial-container {
        border-radius: 16px;
        margin-top: 10px;
    }
    
    .trial-left {
        padding: 25px 20px;
    }
    
    .trial-right {
        padding: 30px 20px;
    }
    
    .back-link {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .trial-info h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .trial-info > p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .trial-benefits {
        margin-bottom: 25px;
    }
    
    .benefit-item {
        padding: 10px;
        margin-bottom: 12px;
        gap: 12px;
    }
    
    .benefit-item i {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .benefit-item strong {
        font-size: 0.95rem;
        margin-bottom: 3px;
    }
    
    .benefit-item span {
        font-size: 0.85rem;
    }
    
    .testimonials-carousel {
        margin-top: 20px;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
    }
    
    .testimonial-card {
        min-width: 260px;
        max-width: 260px;
        padding: 20px;
    }
    
    .testimonial-card i {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .testimonial-card p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .testimonial-author strong {
        font-size: 0.95rem;
    }
    
    .testimonial-author span {
        font-size: 0.85rem;
    }
    
    .form-header {
        margin-bottom: 30px;
    }
    
    .form-header-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .form-header-icon i {
        font-size: 30px;
    }
    
    .form-header h2 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    
    .form-header p {
        font-size: 0.9rem;
    }
    
    .trial-form {
        max-width: 100%;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px 14px;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .form-group select {
        background-position: right 12px center;
        padding-right: 40px;
    }
    
    .checkbox-label {
        padding: 12px;
        gap: 10px;
        font-size: 0.9rem;
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
    
    .trial-form .btn-primary {
        padding: 15px;
        font-size: 1rem;
    }
    
    .form-note {
        font-size: 0.85rem;
        padding: 10px 15px;
        margin-top: 15px;
    }
    
    .success-content {
        padding: 30px 20px;
        max-width: 90%;
    }
    
    .success-content h2 {
        font-size: 1.5rem;
    }
    
    .success-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 375px) {
    .trial-page {
        padding: 10px 5px;
    }
    
    .trial-container {
        border-radius: 12px;
    }
    
    .trial-left {
        padding: 20px 15px;
    }
    
    .trial-right {
        padding: 25px 15px;
    }
    
    .trial-info h1 {
        font-size: 1.3rem;
    }
    
    .trial-info > p {
        font-size: 0.9rem;
    }
    
    .benefit-item {
        padding: 8px;
        gap: 10px;
    }
    
    .benefit-item i {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .benefit-item strong {
        font-size: 0.9rem;
    }
    
    .benefit-item span {
        font-size: 0.8rem;
    }
    
    .testimonial-card {
        min-width: 240px;
        max-width: 240px;
        padding: 18px;
    }
    
    .form-header h2 {
        font-size: 1.2rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 11px 12px;
        font-size: 0.9rem;
    }
}
