/* CreditPlus Ratenrechner Styles */

.creditplus-ratenrechner {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 20px 0;
}

.creditplus-box {
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.creditplus-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.creditplus-box h3 {
    margin: 0 0 20px 0;
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
}

.creditplus-rate-display {
    margin-bottom: 24px;
}

.rate-loading {
    color: #666;
    font-style: italic;
}

.monthly-rate {
    font-size: 2.2em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.rate-amount {
    color: #27ae60;
}

.rate-details {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

.creditplus-button {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 123, 186, 0.3);
    width: 100%;
}

.creditplus-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 123, 186, 0.4);
    background: linear-gradient(135deg, #005a87 0%, #004466 100%);
}

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

/* Modal Styles */
.creditplus-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.creditplus-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.creditplus-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.creditplus-close:hover {
    color: #333;
}

.creditplus-modal-content h2 {
    margin: 0;
    padding: 20px 30px 10px 30px;
    font-size: 1.8em;
    color: #333;
    border-bottom: 1px solid #eee;
}

/* Form Styles */
#creditplus-form {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    margin: 0 0 20px 0;
    font-size: 1.3em;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.form-row {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-row label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.95em;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="number"],
.form-row select {
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background-color: #fafbfc;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: #007cba;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 186, 0.1);
}

.form-row input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.form-row input[type="checkbox"] + label {
    display: inline;
    margin-bottom: 0;
}

.balloon-amount {
    margin-left: 25px;
    padding-left: 15px;
    border-left: 3px solid #ecf0f1;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.creditplus-submit {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.3);
    min-width: 200px;
}

.creditplus-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
}

.creditplus-submit:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success/Error Messages */
.creditplus-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
}

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

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

/* Loading Animation */
.creditplus-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .creditplus-modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 85vh;
    }
    
    .creditplus-box {
        padding: 20px;
        margin: 0 10px;
    }
    
    .monthly-rate {
        font-size: 1.8em;
    }
    
    #creditplus-form {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .creditplus-modal-content {
        margin: 5% auto;
        width: 98%;
        max-height: 90vh;
    }
    
    .creditplus-modal-content h2 {
        padding: 15px 20px 10px 20px;
        font-size: 1.5em;
    }
    
    #creditplus-form {
        padding: 15px;
    }
    
    .monthly-rate {
        font-size: 1.6em;
    }
} 