/* ===================================
   Aquarium Calculator - Frontend Styles
   تم آکواریوم زیبا و حرفه‌ای
   =================================== */

:root {
    --aqc-primary: #0077b6;
    --aqc-primary-dark: #005f92;
    --aqc-secondary: #00b4d8;
    --aqc-accent: #48cae4;
    --aqc-light: #90e0ef;
    --aqc-lighter: #caf0f8;
    --aqc-dark: #03045e;
    --aqc-success: #2ecc71;
    --aqc-danger: #e74c3c;
    --aqc-warning: #f39c12;
    --aqc-white: #ffffff;
    --aqc-gray: #f8f9fa;
    --aqc-shadow: 0 10px 40px rgba(0, 119, 182, 0.2);
    --aqc-radius: 16px;
}

/* Main Wrapper */
.aqc-calculator-wrapper {
    direction: rtl;
    font-family: 'IRANSans', 'Tahoma', sans-serif;
    padding: 30px 20px;
    background: linear-gradient(180deg, var(--aqc-lighter) 0%, var(--aqc-white) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Bubble Animation */
.aqc-calculator-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 180, 216, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(72, 202, 228, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(144, 224, 239, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

/* Container */
.aqc-calculator-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--aqc-white);
    border-radius: var(--aqc-radius);
    padding: 40px;
    box-shadow: var(--aqc-shadow);
    position: relative;
    z-index: 1;
}

/* Title */
.aqc-title {
    text-align: center;
    color: var(--aqc-dark);
    font-size: 28px;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--aqc-accent);
    background: linear-gradient(135deg, var(--aqc-dark), var(--aqc-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sections */
.aqc-section {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, var(--aqc-gray) 0%, var(--aqc-white) 100%);
    border-radius: 12px;
    border: 1px solid var(--aqc-lighter);
}

.section-title {
    color: var(--aqc-dark);
    font-size: 16px;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Dimensions */
.aqc-dimensions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.aqc-field {
    display: flex;
    flex-direction: column;
}

.aqc-field label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--aqc-dark);
    font-size: 14px;
}

.aqc-field input[type="text"],
.aqc-field input[type="number"],
.aqc-field input[type="tel"],
.aqc-field input[type="file"],
.aqc-field textarea {
    padding: 14px 18px;
    border: 2px solid var(--aqc-lighter);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--aqc-white);
}

.aqc-field input:focus,
.aqc-field textarea:focus {
    outline: none;
    border-color: var(--aqc-primary);
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.15);
}

.aqc-field.error input,
.aqc-field.error textarea {
    border-color: var(--aqc-danger);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Volume Display */
.aqc-volume-display {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, var(--aqc-primary), var(--aqc-secondary));
    border-radius: 10px;
    color: var(--aqc-white);
    text-align: center;
    font-size: 16px;
}

.aqc-volume-display strong {
    font-size: 22px;
    margin: 0 8px;
}

/* Radio Groups */
.aqc-radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.aqc-radio-option {
    flex: 1;
    min-width: 150px;
    position: relative;
    cursor: pointer;
}

.aqc-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.aqc-radio-option .radio-label {
    display: block;
    padding: 18px 20px;
    background: var(--aqc-white);
    border: 2px solid var(--aqc-lighter);
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.aqc-radio-option input[type="radio"]:checked + .radio-label {
    background: linear-gradient(135deg, var(--aqc-primary), var(--aqc-secondary));
    color: var(--aqc-white);
    border-color: var(--aqc-primary);
    box-shadow: 0 5px 20px rgba(0, 119, 182, 0.3);
}

.aqc-radio-option:hover .radio-label {
    border-color: var(--aqc-primary);
}

.aqc-radio-group.error .radio-label {
    border-color: var(--aqc-danger);
}

/* Buttons */
.aqc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 35px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.aqc-button-calculate {
    width: 100%;
    background: linear-gradient(135deg, var(--aqc-dark), var(--aqc-primary));
    color: var(--aqc-white);
}

.aqc-button-calculate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(3, 4, 94, 0.3);
}

.aqc-button-order {
    background: linear-gradient(135deg, var(--aqc-success), #27ae60);
    color: var(--aqc-white);
}

.aqc-button-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
}

.aqc-button-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--aqc-primary), var(--aqc-secondary));
    color: var(--aqc-white);
}

.aqc-button-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 119, 182, 0.3);
}

/* Calculate Section */
.aqc-calculate-section {
    margin-top: 30px;
}

/* Result Container */
.aqc-result-container {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, var(--aqc-lighter), var(--aqc-white));
    border-radius: 12px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.aqc-price-display {
    margin-bottom: 25px;
}

.price-label {
    display: block;
    color: var(--aqc-dark);
    font-size: 16px;
    margin-bottom: 10px;
}

.price-amount {
    font-size: 42px;
    font-weight: 700;
    color: var(--aqc-primary);
    display: block;
    margin-bottom: 5px;
}

.price-currency {
    color: var(--aqc-dark);
    font-size: 18px;
}

/* Order Form */
.aqc-order-form-container {
    margin-top: 30px;
    padding: 30px;
    background: var(--aqc-gray);
    border-radius: 12px;
    animation: fadeIn 0.5s ease;
}

.aqc-order-form .aqc-field {
    margin-bottom: 20px;
}

/* Payment Section */
.aqc-payment-section {
    margin: 25px 0;
    padding: 25px;
    background: var(--aqc-white);
    border-radius: 12px;
    border: 2px dashed var(--aqc-accent);
}

.aqc-payment-section h4 {
    color: var(--aqc-dark);
    margin: 0 0 20px 0;
    font-size: 18px;
}

.payment-info {
    text-align: center;
    margin-bottom: 20px;
}

.payment-info p {
    margin: 10px 0;
    color: var(--aqc-dark);
}

.card-number {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--aqc-dark), var(--aqc-primary));
    color: var(--aqc-white);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 3px;
    border-radius: 10px;
    margin: 15px 0;
    direction: ltr;
}

.card-owner {
    color: var(--aqc-primary);
    font-weight: 600;
}

/* Error Message */
.aqc-error-message {
    margin-top: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 1px solid var(--aqc-danger);
    border-radius: 10px;
    color: var(--aqc-danger);
    text-align: center;
    animation: fadeIn 0.3s ease;
}

/* Success Message */
.aqc-success-message {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 2px solid var(--aqc-success);
    border-radius: 12px;
    color: #065f46;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.aqc-success-message h3 {
    margin: 0 0 15px 0;
    color: var(--aqc-success);
}

/* Submit Section */
.aqc-submit-section {
    margin-top: 25px;
}

/* File Input */
input[type="file"] {
    padding: 12px;
    background: var(--aqc-white);
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    padding: 10px 20px;
    background: var(--aqc-primary);
    color: var(--aqc-white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 15px;
    transition: background 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
    background: var(--aqc-primary-dark);
}

/* Responsive */
@media (max-width: 600px) {
    .aqc-calculator-container {
        padding: 25px 20px;
    }
    
    .aqc-dimensions {
        grid-template-columns: 1fr;
    }
    
    .aqc-radio-group {
        flex-direction: column;
    }
    
    .aqc-radio-option {
        min-width: 100%;
    }
    
    .price-amount {
        font-size: 32px;
    }
    
    .card-number {
        font-size: 18px;
        letter-spacing: 2px;
    }
}

/* Loading State */
.aqc-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.aqc-button.loading::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--aqc-white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
