/* ===== GOYA CALCULATOR WIDGET STYLES ===== */

:root {
    --goya-primary: #1a1a1a;
    --goya-secondary: #d4a574;
    --goya-light: #f5f5f5;
    --goya-white: #ffffff;
    --goya-text: #333333;
    --goya-text-light: #666666;
    --goya-border: #e0e0e0;
}

.goya-calculator-container {
    background-color: var(--goya-white);
    border: 1px solid var(--goya-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== TYPOGRAPHY ===== */
.calculator-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--goya-primary);
    margin-bottom: 0.5rem;
}

.calculator-subtitle {
    color: var(--goya-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.calculator-description {
    color: var(--goya-text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== FORM STYLES ===== */
.calculator-form {
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--goya-primary);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--goya-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--goya-white);
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--goya-secondary);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

/* ===== RADIO GROUP ===== */
.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
}

.radio-group input[type="radio"] {
    cursor: pointer;
    accent-color: var(--goya-secondary);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--goya-secondary);
    color: var(--goya-white);
    width: 100%;
}

.btn-primary:hover {
    background-color: #c49563;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--goya-primary);
    color: var(--goya-white);
}

.btn-secondary:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-block {
    width: 100%;
}

/* ===== MODAL STYLES ===== */
.goya-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.goya-modal-content {
    background-color: var(--goya-white);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

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

.goya-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 15px 20px;
    cursor: pointer;
    transition: color 0.3s ease;
    border: none;
    background: none;
}

.goya-modal-close:hover,
.goya-modal-close:focus {
    color: var(--goya-primary);
}

.goya-modal-body {
    padding: 30px;
}

.modal-title {
    margin: 0 0 25px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--goya-primary);
    text-align: center;
}

.modal-result {
    background: var(--goya-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--goya-border);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item.result-total {
    background: #f0f0f0;
    padding: 15px;
    margin: 0 -20px -20px -20px;
    border-radius: 0 0 8px 8px;
}

.result-label {
    font-size: 13px;
    color: var(--goya-text-light);
    font-weight: 500;
}

.result-data {
    font-size: 16px;
    font-weight: 600;
    color: var(--goya-primary);
}

.result-total .result-data {
    font-size: 24px;
    color: var(--goya-secondary);
}

.result-divider {
    height: 1px;
    background: var(--goya-border);
    margin: 15px 0;
}

.modal-disclaimer {
    font-size: 12px;
    color: #999999;
    font-style: italic;
    text-align: center;
    margin: 0;
}

.goya-modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px 30px;
    border-top: 1px solid var(--goya-border);
    background: var(--goya-light);
    border-radius: 0 0 12px 12px;
}

.goya-modal-footer .btn {
    flex: 1;
    margin: 0;
    width: auto;
}

/* ===== RESULT DISPLAY ===== */
.calc-result {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.15) 0%, rgba(212, 165, 116, 0.05) 100%);
    border-left: 5px solid var(--goya-secondary);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1.5rem;
    animation: slideIn 0.4s ease-out;
}

.result-label {
    color: var(--goya-text-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--goya-secondary);
    margin-bottom: 1.5rem;
}

/* ===== RESULT CTA BUTTONS ===== */
.calculator-cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.calculator-cta-buttons .btn {
    flex: 1;
    width: auto;
}

/* ===== CALCULATOR NOTE ===== */
.calc-note {
    font-size: 0.8rem;
    color: var(--goya-text-light);
    background-color: rgba(0, 0, 0, 0.03);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--goya-secondary);
    margin: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .goya-calculator-container {
        padding: 20px;
    }

    .calculator-title {
        font-size: 1.5rem;
    }

    .calculator-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .calc-result {
        padding: 1.5rem;
    }

    .result-value {
        font-size: 2.5rem;
    }

    .calculator-cta-buttons {
        flex-direction: column;
    }

    .calculator-cta-buttons .btn {
        width: 100%;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .goya-modal-content {
        width: 95%;
        margin: 20% auto;
    }

    .goya-modal-footer {
        flex-direction: column;
    }

    .goya-modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .goya-calculator-container {
        padding: 15px;
    }

    .calculator-title {
        font-size: 1.25rem;
    }

    .calculator-subtitle {
        font-size: 0.9rem;
    }

    .calculator-description {
        font-size: 0.9rem;
    }

    .result-value {
        font-size: 2rem;
    }

    .calc-note {
        font-size: 0.75rem;
    }

    .goya-modal-content {
        width: 98%;
        margin: 30% auto;
    }

    .goya-modal-body {
        padding: 15px;
    }

    .modal-result {
        padding: 15px;
    }

    .result-item {
        padding: 10px 0;
    }

    .result-data {
        font-size: 14px;
    }

    .result-total .result-data {
        font-size: 20px;
    }
}

/* ===== ELEMENTOR EDITOR ===== */
.elementor-editor .goya-calculator-container {
    pointer-events: all;
}

.elementor-editor .goya-calculator-container .btn {
    pointer-events: none;
}

/* ===== LOADING STATE ===== */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.goya-gold-price-list {
    margin-top: 25px;
    padding-top: 15px;
	font-size : 12px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.goya-gold-price-list h4 {
    margin-bottom: 10px;
    font-size: 16px;
	font-weight: 600;
}

.gold-price-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-weight: 500;
}

.gold-karat {
    opacity: 0.8;
}

.gold-value {
    font-weight: 600;
}

.gold-last-update{font-size: 11px;}
.goya-prices-box {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
    margin: 15px 0 25px 0;
    border: 1px solid #eee;
}

.goya-prices-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.goya-prices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.goya-price-item {
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.goya-price-karat {
    color: #555;
}

.goya-price-value {
    font-weight: 600;
}

.goya-price-updated {
    margin-top: 12px;
    font-size: 12px;
    color: #000;
	font-weight:600;
}

@media (max-width: 768px) {

    .goya-prices-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

