/**
 * Copyright since 2009 Webimpacto Consulting SL
 *
 * NOTICE OF LICENSE
 *
 * @author    Webimpacto Consulting SL <info@webimpacto.es>
 * @copyright Since 2009 Webimpacto Consulting SL
 * @license   Property of Webimpacto Consulting SL. Non redistributable.
 */

/* Navigation button styles */

#main-page-content .cbp-hrmenu > ul > li {
    padding: 0 !important;
}

#main-page-content .cbp-hrmenu .nav-link{
    padding: .5rem 0.8rem;
}

.wim-quote-nav-item {
    padding: 0 !important;
    list-style: none;
}

.wim-quote-link {
    display: inline-block;
    text-decoration: none;
}

.wim-quote-button-text {
    background-color: #ff4514;
    border-radius: 50px;
    padding: 1rem;
    display: inline-block;
    color: #fff;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.wim-quote-button-text:hover {
    background-color: #ff4514;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Form container */
.wim-quote-form-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wim-quote-form .form-group {
    margin-bottom: 1.5rem;
}

.wim-quote-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.wim-quote-form .required-indicator {
    color: #dc3545;
    margin-left: 3px;
}

.wim-quote-form .form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wim-quote-form .form-control:focus {
    border-color: #ebb771;
    box-shadow: 0 0 0 0.2rem rgba(235, 183, 113, 0.25);
    outline: none;
}

.wim-quote-form .form-control.is-invalid {
    border-color: #dc3545;
}

.wim-quote-form .custom-select {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 0.75rem;
    font-size: 1rem;
}

.wim-quote-form .custom-select:focus {
    border-color: #ebb771;
    box-shadow: 0 0 0 0.2rem rgba(235, 183, 113, 0.25);
}

.wim-quote-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Privacy checkbox */
.privacy-link {
    color: #ebb771;
    text-decoration: underline;
}

.privacy-link:hover {
    color: #d9a560;
}

/* Submit button */
.wim-quote-submit {
    background-color: #ebb771;
    border-color: #ebb771;
    color: #fff;
    padding: 0.75rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.wim-quote-submit:hover,
.wim-quote-submit:focus {
    background-color: #d9a560;
    border-color: #d9a560;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 183, 113, 0.4);
}

.wim-quote-submit:active {
    transform: translateY(0);
}

/* Success page */
.wim-quote-success-container {
    max-width: 700px;
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
}

.wim-quote-success-container .alert-success {
    padding: 2rem;
    border-radius: 8px;
}

.wim-quote-success-container .material-icons {
    font-size: 4rem;
    color: #28a745;
    display: block;
    margin-bottom: 1rem;
}

.wim-quote-success-container h3 {
    color: #28a745;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Success message */
.wim-quote-form-container .alert-success {
    border-radius: 8px;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.wim-quote-form-container .alert-success .material-icons {
    font-size: 2rem;
    vertical-align: middle;
    margin-right: 0.5rem;
    color: #28a745;
}

/* Error messages */
.wim-quote-form-container .alert-danger {
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.wim-quote-form-container .alert-danger ul {
    padding-left: 1.5rem;
}

/* Custom switch for financing plan */
.custom-switch .custom-control-label::before {
    background-color: #ddd;
    border: none;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #ebb771;
    border-color: #ebb771;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wim-quote-form-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .wim-quote-button-text {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .wim-quote-submit {
        width: 100%;
    }
}

/* Animation for form validation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.form-control.shake {
    animation: shake 0.5s;
}

/* Loading state */
.wim-quote-submit.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.wim-quote-submit.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

.wim-quote-link{
    padding: 0;
}

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

