/* Styles for Basic Package Template */

/* Container */
#movespain-calculator-basic {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 25px 30px;
}

/* Form Container */
.basic-form-container {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto 20px;
}

.basic-form-container h3 {
    color: #2c5aa0;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px;
    text-align: center;
}

.basic-form-container p {
    text-align: center;
    color: #666;
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
}

/* Options Grid */
.basic-options-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.basic-option-item {
    text-align: center;
    min-width: 220px;
}

.basic-option-item label {
    display: block;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.basic-checkbox-control {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.basic-checkbox-control input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #6c757d;
}

/* Make the basic checkboxes look like the main front checkboxes (green when checked) */
#movespain-calculator-basic input[type="checkbox"]#basicTranslation,
#movespain-calculator-basic input[type="checkbox"]#basicHealth {
    /* reset native appearance */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 2px solid #6c757d;
    background: white;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
}

#movespain-calculator-basic input[type="checkbox"]#basicTranslation:checked,
#movespain-calculator-basic input[type="checkbox"]#basicHealth:checked {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: transparent;
}

#movespain-calculator-basic input[type="checkbox"]#basicTranslation:checked::after,
#movespain-calculator-basic input[type="checkbox"]#basicHealth:checked::after {
    content: "";
    position: absolute;
    /* center the checkmark */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -52%) rotate(45deg);
    display: block;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    box-sizing: content-box;
}

.basic-checkbox-control label {
    font-size: 16px;
    color: #6c757d;
    cursor: pointer;
    font-weight: 600;
    margin: 0;
}

.basic-option-item .fee-hint {
    color: #999;
    font-size: 11px;
    margin: 6px 0 0;
}

/* Summary Box */
.basic-summary-container {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto 20px;
}

.basic-summary-container p:first-child {
    color: #666;
    font-size: 14px;
    margin: 0 0 5px;
}

.basic-summary-container .price-display {
    color: #2c5aa0;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

/* Payment Card */
.basic-payment-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.basic-payment-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 20px;
    padding: 20px 15px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.basic-payment-card:hover {
    transform: translateY(-8px);
    border-color: #2c5aa0;
    box-shadow: 0 12px 30px rgba(44, 90, 160, 0.2);
}

.basic-payment-card img {
    width: 40px;
    height: 40px;
    margin: 10px auto;
    display: block;
}

.basic-payment-card h3 {
    color: #2c5aa0;
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0;
}

.basic-payment-card p {
    color: #666;
    font-size: 13px;
    margin: 0 0 8px;
}

.basic-payment-card .payment-amount {
    color: #2c5aa0;
    font-size: 28px;
    font-weight: 700;
    margin: 8px 0;
}

/* Button */
.basic-pay-button {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a70 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
    margin-top: 10px;
    width: auto;
    display: inline-block;
}

.basic-pay-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 90, 160, 0.4);
}

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

.basic-pay-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    #movespain-calculator-basic {
        margin: 10px;
        padding: 15px 20px;
    }

    .basic-form-container {
        padding: 15px;
    }

    .basic-options-grid {
        flex-direction: column;
        gap: 15px;
    }

    .basic-option-item {
        width: 100%;
        min-width: unset;
    }

    .basic-payment-card h3 {
        font-size: 16px;
    }

    .basic-payment-card .payment-amount {
        font-size: 24px;
    }
}