/* EU Travel Navigator Frontend Styles */

/* Signup Container */
.eu-travel-signup-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.eu-travel-signup-form {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.eu-travel-signup-form h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
}

.signup-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
}

/* Trip Migration Notice */
.trip-migration-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.migration-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.migration-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.migration-content p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
}

.migration-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.migration-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.migration-options input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.migration-options span {
    cursor: pointer;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

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

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

/* Checkbox Group */
.checkbox-group {
    margin-bottom: 30px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-group a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Submit Button */
.eu-travel-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.eu-travel-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.eu-travel-submit-btn:active {
    transform: translateY(0);
}

.eu-travel-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Button Loading State */
.btn-loading {
    display: none;
}

.eu-travel-submit-btn.loading .btn-text {
    display: none;
}

.eu-travel-submit-btn.loading .btn-loading {
    display: inline;
}

/* Signup Footer */
.signup-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e1e5e9;
}

.signup-footer p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.signup-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.signup-footer a:hover {
    text-decoration: underline;
}

/* Messages */
.signup-message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.signup-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.signup-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.signup-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
}

.password-strength-bar {
    height: 4px;
    border-radius: 2px;
    background: #e1e5e9;
    overflow: hidden;
    margin-bottom: 4px;
}

.password-strength-bar-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    width: 0;
}

.password-strength.weak .password-strength-bar-fill {
    background: #dc3545;
    width: 25%;
}

.password-strength.fair .password-strength-bar-fill {
    background: #ffc107;
    width: 50%;
}

.password-strength.good .password-strength-bar-fill {
    background: #17a2b8;
    width: 75%;
}

.password-strength.strong .password-strength-bar-fill {
    background: #28a745;
    width: 100%;
}

.password-strength.strong .password-strength-bar {
    background: #27ae60;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 600px) {
    .eu-travel-signup-container {
        padding: 10px;
    }
    
    .eu-travel-signup-form {
        padding: 30px 20px;
    }
    
    .eu-travel-signup-form h2 {
        font-size: 24px;
    }
    
    .trip-migration-notice {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .migration-icon {
        align-self: center;
    }
    
    .migration-options {
        align-items: center;
    }
}

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

.btn-loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

/* Focus States for Accessibility */
.form-group input:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.eu-travel-submit-btn:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .eu-travel-signup-form {
        border: 2px solid #000;
    }
    
    .form-group input {
        border: 2px solid #000;
    }
    
    .eu-travel-submit-btn {
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .eu-travel-submit-btn,
    .form-group input,
    .password-strength-bar-fill {
        transition: none;
    }
    
    .btn-loading::before {
        animation: none;
    }
}

/* Travel Planner Container Styles */
.eu-travel-planner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.eu-travel-planner-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.eu-travel-planner-header h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
}

.eu-travel-planner-header p {
    margin: 0;
    font-size: 18px;
    opacity: 0.9;
}

.eu-travel-planner-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.eu-travel-planner-embedded-content {
    width: 100%;
    min-height: 600px;
    background: white;
}

.eu-travel-planner-loading {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.eu-travel-planner-loading p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.eu-travel-planner-error {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.eu-travel-planner-error p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 16px;
}

.eu-travel-planner-error a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.eu-travel-planner-error a:hover {
    text-decoration: underline;
}

.eu-travel-planner-fallback {
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.eu-travel-planner-fallback p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 16px;
}

.eu-travel-planner-fallback a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.eu-travel-planner-fallback a:hover {
    text-decoration: underline;
}

/* Login Required State */
.eu-travel-planner-login-required {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.eu-travel-planner-login-required h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.eu-travel-planner-login-required p {
    margin: 0 0 30px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.eu-travel-planner-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.eu-travel-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.eu-travel-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.eu-travel-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.eu-travel-btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.eu-travel-btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design for Travel Planner */
@media (max-width: 768px) {
    .eu-travel-planner-container {
        padding: 10px;
    }
    
    .eu-travel-planner-header {
        padding: 15px;
    }
    
    .eu-travel-planner-header h2 {
        font-size: 24px;
    }
    
    .eu-travel-planner-header p {
        font-size: 16px;
    }
    
    .eu-travel-planner-iframe {
        min-height: 500px;
    }
    
    .eu-travel-planner-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .eu-travel-btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .eu-travel-planner-iframe {
        min-height: 400px;
    }
    
    .eu-travel-planner-login-required {
        padding: 40px 15px;
    }
    
    .eu-travel-planner-login-required h2 {
        font-size: 24px;
    }
} 