/* Audit Fee Calculator Styles */

.afc-calculator-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.afc-calculator-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 30px;
}

.afc-title {
    color: #1e293b;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-align: center;
}

/* Form Layout - Multi-Column Grid */
.afc-form {
    gap: 0;
}

.afc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.afc-form-grid.afc-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.afc-form-grid .afc-form-row {
    margin-bottom: 0;
}

.afc-form > .afc-form-row {
    margin-top: 10px;
}

/* Form Field Styles */
.afc-form-row {
    display: flex;
    flex-direction: column;
}

.afc-form-row label {
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.afc-form-row label .required {
    color: #ef4444;
    margin-left: 3px;
}

.afc-form-row input[type="text"],
.afc-form-row input[type="number"],
.afc-form-row select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.afc-form-row input[type="text"]:focus,
.afc-form-row input[type="number"]:focus,
.afc-form-row select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.afc-form-row input[type="number"] {
    -moz-appearance: textfield;
}

.afc-form-row input[type="number"]::-webkit-outer-spin-button,
.afc-form-row input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.afc-submit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 5px;
}

.afc-submit-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

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

.afc-submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Results Section */
.afc-results {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 2px solid #bae6fd;
}

.afc-results h3 {
    color: #0c4a6e;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px 0;
    text-align: center;
}

.afc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.afc-result-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.afc-result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.afc-result-item.aed {
    border-left: 4px solid #10b981;
}

.afc-result-item.usd {
    border-left: 4px solid #3b82f6;
}

.afc-result-label {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.afc-result-value {
    display: block;
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
}

/* Disclaimer */
.afc-disclaimer {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
}

.afc-disclaimer p {
    color: #475569;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

/* CTA Buttons Row */
.afc-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.afc-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
	text-transform: uppercase;
}

.afc-phone-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

.afc-phone-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: #ffffff;
}

.afc-callback-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

.afc-callback-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.afc-quote-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}

.afc-quote-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: #ffffff;
}

.afc-cta-btn svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Loading State */
.afc-loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.afc-spinner {
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: afc-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes afc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.afc-loading p {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Error State */
.afc-error {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.afc-error p {
    color: #dc2626;
    font-size: 14px;
    margin: 0;
}

/* Conditions Section */
.afc-conditions {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    margin-top: 20px;
}

.afc-conditions h3 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.afc-conditions ol {
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
    padding-left: 20px;
    margin: 0;
}

.afc-conditions li {
    margin-bottom: 8px;
}

.afc-conditions ul {
    margin-top: 8px;
    padding-left: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .afc-form-grid.afc-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .afc-calculator-container {
        padding: 16px;
    }
    
    .afc-title {
        font-size: 20px;
    }
    
    .afc-form-grid,
    .afc-form-grid.afc-grid-3 {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .afc-results-grid {
        grid-template-columns: 1fr;
    }
    
    .afc-result-value {
        font-size: 20px;
    }
    
    .afc-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .afc-cta-btn {
        padding: 14px 18px;
        font-size: 14px;
    }
    
    .afc-conditions {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .afc-calculator-wrapper {
        padding: 10px;
    }
    
    .afc-calculator-container {
        padding: 20px;
    }
    
    .afc-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}
