/**
 * Paint Calculator Styles
 * Color: #894BE2 (Verde Alba)
 */

/* Trigger Button */
.electro-paint-calculator-trigger-wrapper {
    margin: 15px 0;
}

.btn-calc-pintura {
    background-color: transparent;
    color: #894BE2;
    border: 2px solid #894BE2;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-calc-pintura:hover {
    background-color: #894BE2;
    color: #fff;
}

.btn-calc-pintura .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Modal Overlay */
.paint-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.paint-modal.show {
    display: flex;
}

/* Modal Content */
.paint-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Close Button */
.close-paint-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    z-index: 10;
}

.close-paint-modal:hover {
    color: #000;
}

/* Header */
.paint-modal-header {
    background-color: #894BE2;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.paint-modal-header h3 {
    margin: 0;
    font-size: 22px;
    color: #fff;
}

.paint-modal-header p {
    margin: 5px 0 0;
    font-size: 14px;
    opacity: 0.9;
    color: #fff;
}

/* Body */
.paint-modal-body {
    padding: 25px;
}

/* Steps */
.calc-step {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.calc-step.hidden {
    display: none;
}

.calc-step h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

/* Buttons & Inputs */
.step-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-step-action {
    background-color: #894BE2;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-step-action:hover {
    background-color: #17a079;
}

.btn-step-action.outline {
    background-color: transparent;
    border: 2px solid #894BE2;
    color: #20c997;
}

.btn-step-action.outline:hover {
    background-color: #f0fdf9;
}

.input-group {
    position: relative;
    max-width: 200px;
    margin: 0 auto;
}

.input-group input {
    width: 100%;
    padding: 10px;
    font-size: 18px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.input-group input:focus {
    border-color: #894BE2;
    outline: none;
}

.input-group .unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-weight: 600;
}

.dimensions-inputs {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.dimensions-inputs .input-group {
    width: 120px;
}

.dimensions-inputs label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #666;
}

.calculated-preview {
    font-size: 16px;
    color: #894BE2;
    font-weight: bold;
    margin: 10px 0;
}

.btn-back {
    align-self: flex-start;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 5px;
}

.btn-proximo, .btn-calc-final {
    background-color: #894BE2;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    align-self: center;
    margin-top: 10px;
}

.btn-calc-final {
    background-color: #333;
    width: 100%;
    border-radius: 8px;
}

/* Openings */
.helper-text {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.openings-row {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-bottom: 20px;
}

.opening-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.opening-item .icon {
    font-size: 24px;
}

.opening-item .ctrls {
    text-align: center;
}

.opening-item label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 8px;
}

.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 2px;
}

.stepper button {
    background: none;
    border: none;
    width: 25px;
    height: 25px;
    font-weight: bold;
    color: #894BE2;
    cursor: pointer;
}

.stepper span {
    font-weight: bold;
    min-width: 20px;
}

/* Result */
.result-box {
    background-color: #f0fdf9;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #cbf7e9;
    margin-bottom: 20px;
}

.result-main {
    font-size: 32px;
    font-weight: 800;
    color: #20c997;
}

.result-unit {
    font-size: 18px;
    font-weight: normal;
}

.result-sub {
    margin: 5px 0 0;
    color: #666;
    font-size: 14px;
}

.recommendation-box {
    text-align: left;
    background: #fafafa;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #444;
}

.recommendation-box p {
    margin: 5px 0;
}

.btn-reset {
    background: none;
    border: none;
    text-decoration: underline;
    color: #666;
    cursor: pointer;
}
