/**
 * Simple and Clean IPTV Free Test Form Styles
 */

/* Container and Layout */
.iptv-free-test-form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/* Form Header */
.iptv-form-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 30px 25px;
    text-align: center;
}

.iptv-form-title {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin: 0 0 8px 0;
}

.iptv-form-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
}

/* Form Styling */
.iptv-free-test-form {
    background: white;
    padding: 30px 25px;
}

.form-row {
    display: block;
    margin-bottom: 20px;
}

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

/* Simple Input Styles */
.iptv-free-test-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.iptv-free-test-form input[type="text"],
.iptv-free-test-form input[type="email"],
.iptv-free-test-form input[type="tel"],
.iptv-free-test-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    outline: none;
}

.iptv-free-test-form input:focus,
.iptv-free-test-form select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.required {
    color: #dc2626;
    font-weight: 500;
}

.optional {
    color: #6b7280;
    font-size: 13px;
    font-weight: 400;
}

/* MAC Address Group */
.mac-address-group {
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

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

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

/* Simple Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

/* Simple Submit Button */
.iptv-submit-button {
    width: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 15px;
}

.iptv-submit-button:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    transform: translateY(-1px);
}

.iptv-submit-button:active {
    transform: translateY(0);
}

.form-disclaimer {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

/* Messages */
.iptv-form-message {
    margin-top: 25px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    border-left: 4px solid;
}

.iptv-form-message.error {
    background-color: #fed7d7;
    color: #c53030;
    border-left-color: #e53e3e;
}

.iptv-form-message.success {
    background-color: #c6f6d5;
    color: #22543d;
    border-left-color: #38a169;
}

.iptv-form-message.warning {
    background-color: #fefcbf;
    color: #744210;
    border-left-color: #d69e2e;
}

/* Results */
.iptv-form-result {
    margin-top: 30px;
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(56, 161, 105, 0.2);
}

.result-header {
    text-align: center;
    padding: 30px 20px 20px;
    background: rgba(255, 255, 255, 0.9);
}

.result-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #38a169 0%, #22543d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
}

.result-header h3 {
    font-size: 24px;
    color: #22543d;
    margin: 0;
    font-weight: 700;
}

.result-content {
    padding: 20px 30px 30px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.result-item:last-of-type {
    border-bottom: none;
}

.result-item strong {
    color: #22543d;
    font-weight: 600;
}

.result-value {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: rgba(255, 255, 255, 0.7);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #2d3748;
    word-break: break-all;
    max-width: 60%;
    text-align: right;
}

.result-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.result-footer p {
    margin: 8px 0;
    color: #22543d;
    font-size: 14px;
}

/* Enhanced Success Message Styles */
.result-subtitle {
    font-size: 16px;
    color: #4a5568;
    margin: 10px 0 0 0;
    font-weight: 400;
}

.success-message {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #38a169;
}

.success-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.success-text h4 {
    margin: 0 0 8px 0;
    color: #22543d;
    font-size: 18px;
    font-weight: 600;
}

.success-text p {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
}

/* Next Steps Section */
.next-steps {
    margin-bottom: 25px;
}

.next-steps h4 {
    color: #22543d;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #38a169 0%, #22543d 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    color: #22543d;
    font-size: 15px;
    margin-bottom: 4px;
}

.step-content small {
    color: #4a5568;
    font-size: 13px;
    line-height: 1.4;
}

/* Trial Info Section */
.trial-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
}

.info-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    color: #22543d;
    font-size: 14px;
    margin-bottom: 2px;
}

.info-item small {
    color: #4a5568;
    font-size: 12px;
}

/* Email Reminder */
.email-reminder {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.email-reminder p {
    margin: 0 0 10px 0;
    color: #22543d;
}

.email-reminder ul {
    margin: 0;
    padding-left: 20px;
    color: #4a5568;
}

.email-reminder li {
    margin-bottom: 5px;
    font-size: 14px;
}

/* Mobile Responsive for Success Message */
@media (max-width: 768px) {
    .success-message {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .trial-info {
        gap: 8px;
    }
}

/* Loading Animation */
.iptv-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.iptv-loading .button-text {
    opacity: 0;
}

.iptv-loading .button-icon {
    display: none;
}

.iptv-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: iptv-spinner 0.8s linear infinite;
}

@keyframes iptv-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .iptv-free-test-form-container {
        margin: 10px;
        border-radius: 16px;
    }
    
    .iptv-form-header {
        padding: 30px 20px;
    }
    
    .iptv-form-title {
        font-size: 24px;
    }
    
    .iptv-free-test-form {
        padding: 30px 20px;
    }
    
    .iptv-submit-button {
        width: 100%;
        min-width: auto;
    }
    
    .result-content {
        padding: 20px;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .result-value {
        max-width: 100%;
        text-align: left;
        word-break: break-word;
    }
}