/* ===== استایل‌های فرانت ===== */
#wcdma-request-form {
    display: grid;
    grid-gap: 1.5rem;
    margin-top: 2rem;
}

.wcdma-form-group {
    position: relative;
    margin-bottom: 1.8rem;
}

.wcdma-form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.wcdma-form-group input[type="text"],
.wcdma-form-group input[type="tel"],
.wcdma-form-group input[type="email"] {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: #f8fafc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.wcdma-form-group input:focus {
    border-color: #4b6cb7;
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(75, 108, 183, 0.15);
    outline: none;
    transform: translateY(-2px);
}

.wcdma-file-upload-container {
    position: relative;
    margin-top: 0.5rem;
}

.wcdma-file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.wcdma-file-upload-label:hover {
    border-color: #4b6cb7;
    background-color: #f0f7ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(75, 108, 183, 0.1);
}

.wcdma-file-upload-icon {
    font-size: 2.5rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.wcdma-file-upload-text {
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.wcdma-file-upload-hint {
    font-size: 0.85rem;
    color: #94a3b8;
}

.wcdma-file-upload-label:hover .wcdma-file-upload-icon {
    color: #4b6cb7;
    transform: scale(1.1);
}

.wcdma-form-group input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

#wcdma-request-form button.button {
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: white;
    border: none;
    padding: 1.1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 6px 15px rgba(75, 108, 183, 0.4);
    width: 100%;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

#wcdma-request-form button.button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#wcdma-request-form button.button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(75, 108, 183, 0.5);
}

#wcdma-request-form button.button:hover:before {
    left: 100%;
}

#wcdma-request-form button.button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(75, 108, 183, 0.4);
}

#wcdma-request-form button.button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

#wcdma-request-form button.button.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5rem;
    height: 1.5rem;
    margin: -0.75rem 0 0 -0.75rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: buttonLoading 0.8s linear infinite;
}

@keyframes buttonLoading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wcdma-form-response {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 12px;
    font-size: 1rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wcdma-file-selected {
    display: block;
    margin-top: 1rem;
    padding: 0.8rem 1.2rem;
    background-color: #f1f5f9;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #334155;
    animation: fadeIn 0.4s ease;
}

.wcdma-file-selected:before {
    content: "✓";
    color: #22c55e;
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .wcdma-file-upload-label {
        padding: 1.8rem 1rem;
    }
    
    #wcdma-request-form button.button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .wcdma-form-group input[type="text"],
    .wcdma-form-group input[type="tel"],
    .wcdma-form-group input[type="email"] {
        padding: 0.9rem 1.1rem;
    }
}

@media (max-width: 480px) {
    .wcdma-file-upload-label {
        padding: 1.5rem 0.8rem;
    }
    
    .wcdma-file-upload-icon {
        font-size: 2rem;
    }
}

/* Modal Styles */
.wcdma-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.wcdma-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 500px;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.wcdma-close {
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #777;
    cursor: pointer;
    transition: color 0.3s;
}

.wcdma-close:hover {
    color: #000;
}

/* Form Styles */
.wcdma-form-group {
    margin-bottom: 20px;
}

.wcdma-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.wcdma-form-group input[type="text"],
.wcdma-form-group input[type="tel"],
.wcdma-form-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.wcdma-form-group input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.2);
}

.wcdma-form-group input[type="file"] {
    padding: 10px 0;
}

/* Button Styles */
.wcdma-request-button {
    background: linear-gradient(135deg, #3498db, #1a5276);
    color: white!important;
    border: none;
    padding: 14px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52,152,219,0.3)!important;
}

.wcdma-request-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52,152,219,0.4);
}

.wcdma-pending-request {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 14px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    opacity: 0.8;
    cursor: not-allowed;
}

/* Status Styles */
.wcdma-status-icon {
    text-align: center;
    font-size: 60px;
    margin-bottom: 20px;
}

.wcdma-status-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.wcdma-status-message {
    text-align: center;
    font-size: 18px;
    margin-bottom: 25px;
    color: #555;
}

/* Status Colors */
.status-approved .wcdma-status-icon {
    color: #27ae60;
}

.status-rejected .wcdma-status-icon {
    color: #e74c3c;
}

.wcdma-error {
    color: #d32f2f;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    background-color: #ffebee;
    font-size: 16px;
}

.wcdma-error strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.wcdma-error ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.wcdma-error ul li {
    margin-bottom: 5px;
}

.wcdma-loading {
    color: #1976d2;
    padding: 15px;
    text-align: center;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    background-color: #e3f2fd;
    font-size: 16px;
}

.wcdma-toggle-details {
    display: inline-block;
    margin-top: 10px;
    color: #1976d2;
    text-decoration: none;
    font-size: 14px;
}

.wcdma-toggle-details:hover {
    text-decoration: underline;
}

.wcdma-error-details {
    padding: 12px;
    margin-top: 10px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 200px;
    overflow: auto;
}

#wcdma-status-modal .wcdma-modal-content {
    position: relative;
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    text-align: center;
    max-width: 500px;
    margin: 5% auto;
    animation: modalScaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

@keyframes modalScaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

#wcdma-status-modal .wcdma-status-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1;
    transition: transform 0.4s ease;
}

#wcdma-status-modal .status-approved .wcdma-status-icon {
    color: #27ae60;
    text-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

#wcdma-status-modal .status-rejected .wcdma-status-icon {
    color: #e74c3c;
    text-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

#wcdma-status-modal .wcdma-status-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.3;
}

#wcdma-status-modal .wcdma-status-message {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #7f8c8d;
    line-height: 1.6;
}

#wcdma-status-modal .wcdma-modal-close.button {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 0.9rem 2.2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    display: inline-block;
}

#wcdma-status-modal .wcdma-modal-close.button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#wcdma-status-modal .wcdma-modal-close.button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.5);
}

#wcdma-status-modal .wcdma-modal-close.button:hover:before {
    left: 100%;
}

#wcdma-status-modal .wcdma-modal-close.button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4);
}

#wcdma-status-modal .wcdma-close {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#wcdma-status-modal .wcdma-close:hover {
    background: #e74c3c;
    color: white;
    transform: rotate(359deg) scale(1.1);
    box-shadow: 0 3px 12px rgba(231, 76, 60, 0.4);
}


@media (max-width: 600px) {
    #wcdma-status-modal .wcdma-modal-content {
        padding: 1.8rem;
        width: 90%;
    }
    
    #wcdma-status-modal .wcdma-status-icon {
        font-size: 3.5rem;
    }
    
    #wcdma-status-modal .wcdma-status-title {
        font-size: 1.5rem;
    }
    
    #wcdma-status-modal .wcdma-status-message {
        font-size: 1rem;
    }
    
    #wcdma-status-modal .wcdma-modal-close.button {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .wcdma-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}


#wcdma-status-notification .wcdma-modal-content {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-align: center;
    max-width: 500px;
    margin: 10% auto;
    padding: 40px;
    position: relative;
}

.wcdma-status-icon .status-approved {
    color: #27ae60;
    animation: scaleIn 0.5s ease;
}

.wcdma-status-icon .status-rejected {
    color: #e74c3c;
    animation: pulse 1s ease;
}

@keyframes scaleIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

button.button.wcdma-request-button,button.button.wcdma-pending-request {
    margin: 0px 0 20px;
}