.ppc-inquiry-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.ppc-inquiry-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(33, 83, 135, 0.1);
    overflow: hidden;
    border: 2px solid #215387;
}

.ppc-inquiry-header {
    background: linear-gradient(135deg, #215387, #2a6ba3);
    color: white;
    padding: 30px;
    text-align: center;
}

.ppc-inquiry-header h3 {
    margin: 0 0 10px 0;
    font-size: 2em;
    font-weight: 600;
}

.ppc-inquiry-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1em;
}

.ppc-inquiry-form {
    padding: 40px;
}

.form-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.form-section {
    flex: 1;
}

.card-preview {
    flex: 0 0 300px;
    text-align: center;
}

.cards-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #215387;
}

.label-ar {
    display: block;
    font-size: 1.1em;
    margin-bottom: 5px;
    direction: rtl;
    text-align: right;
}

.label-en {
    display: block;
    font-size: 0.95em;
    color: #666;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-input:focus {
    outline: none;
    border-color: #215387;
    background: white;
    box-shadow: 0 0 0 3px rgba(33, 83, 135, 0.1);
}

.form-input:invalid {
    border-color: #dc3545;
}

.help-image {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px solid #e1e5e9;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #215387, #2a6ba3);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 83, 135, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 83, 135, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.ppc-result {
    background: #f8f9fa;
    border-top: 3px solid #215387;
    margin-top: 30px;
    border-radius: 0 0 15px 15px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #215387;
    color: white;
}

.result-header h4 {
    margin: 0;
    font-size: 1.3em;
}

.btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.btn-close:hover {
    background: rgba(255,255,255,0.2);
}

.result-content {
    padding: 30px;
    max-height: 500px;
    overflow-y: auto;
}

/* Result styling */
.result-content .roundTbl {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.result-content table {
    width: 100%;
    margin-bottom: 15px;
}

.result-content td {
    padding: 8px;
    border-bottom: 1px solid #e1e5e9;
}

.result-content tr:last-child td {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ppc-inquiry-container {
        padding: 10px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .card-preview {
        flex: none;
        order: -1;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .ppc-inquiry-form {
        padding: 20px;
    }
    
    .ppc-inquiry-header {
        padding: 20px;
    }
    
    .result-content {
        padding: 20px;
    }
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e1e5e9;
    border-radius: 50%;
    border-top-color: #215387;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 18px;
    color: #215387;
    font-weight: 600;
}