/**
 * Tax Application System - Constructions Loop Styles
 *
 * @package TaxApplicationSystem
 * @version 1.0.0
 */

/* Container */
.wa-constructions-loop {
    margin: 20px 0;
}

.wa-info-text {
    font-size: var(--text-m);
    color: var(--body-color);
    margin-bottom: 20px;
}



/* Construction item */
.wa-construction-item {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 30px;
}

.wa-construction-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    height: 28px;
}

.wa-construction-item h3 {
    margin: 0;
    font-size: var(--text-m);
    font-weight: 700;
    font-family: inherit;
    color: var(--body-color);
}



/* Construction field - Basic layout only (field styles in tax-tax-field.css) */
.wa-construction-field {
    margin-bottom: 20px;
}

/* Global error message */
.wa-global-error {
    background: #FFF5F5;
    border: 1px solid #FF0004;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #FF0004;
    font-size: 14px;
    font-weight: 500;
}



/* Hidden utility class */
.wa-hidden {
    display: none !important;
}



/* Remove link */
.wa-remove-construction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #FF0004 !important;
    text-decoration: none !important;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border-radius: 4px;
    background: transparent;
    font-weight: 400 !important;
}

.wa-remove-construction:hover {
    background: #FFF5F5;
    color: #E74C3C;
    transform: scale(1.1);
}

.wa-remove-construction::before {
    content: none;
}



/* Add link */
.wa-add-construction {
    display: inline-block;
    color: var(--primary);
    text-decoration: underline;
    font-weight: 700;
    font-size: var(--text-m);
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease-in-out;
}

.wa-add-construction:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.wa-add-construction::before {
    content: "+ ";
    text-decoration: none;
}



/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}



/* Responsive */
@media (max-width: 768px) {
    .wa-construction-item {
        padding: 0;
    }
    
    .wa-add-construction {
        width: 100%;
        padding: 12px 20px;
    }
}