.modal {
    display: none;
    position: fixed;
    z-index: 99999; /* Increased z-index */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    position: relative;
    background-color: #ffffff;
    margin: 20px auto;
    padding: 40px;
    width: 90%;
    max-width: 1000px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.close-btn {
    position: absolute;
    right: -15px;
    top: -15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #000;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
    color: #fff;
}

.close-btn:hover {
    background: #333;
    transform: scale(1.1);
}

.modal-header {
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.form-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-section h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 500;
}

.form-group label:after {
    content: "*";
    color: #dc3545;
    margin-left: 4px;
    display: none;
}

.form-group.required label:after {
    display: inline;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    background: #fff;
    border: 1px dashed #ced4da;
    border-radius: 6px;
}

.form-group select[multiple] {
    height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    outline: none;
}

.resale-market-btn {
    background-color: #000;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resale-market-btn:hover {
    background-color: #333;
}

.submit-btn {
    background-color: #000000 !important;
    color: #ffffff !important;
    padding: 14px 30px !important;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 30px auto 0;
    min-width: 200px;
}

.submit-btn:hover {
    background-color: #333333;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-content {
        padding: 20px;
    }
}

.success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.success-message h3 {
    color: #000;
    font-size: 24px;
    margin-bottom: 20px;
}

.success-message p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.success-message .check-icon {
    width: 60px;
    height: 60px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: #fff;
    font-size: 30px;
}