/* Design moderne pour deposer-service.html */

.create-service-hero {
    background:
        radial-gradient(circle at top left, rgba(200, 165, 96, 0.18), transparent 35%),
        linear-gradient(180deg, #262626 0%, #1f1f1f 46%, #171717 100%);
    color: #fff3de;
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.create-service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.create-service-hero h1 {
    font-size: 3rem;
    margin: 0 0 15px 0;
    font-weight: 700;
    position: relative;
}

.create-service-hero p {
    font-size: 1.3rem;
    margin: 0;
    opacity: 0.95;
    position: relative;
}

.modern-form-container {
    max-width: 900px;
    margin: -40px auto 60px;
    background: linear-gradient(180deg, #fcfaf4, #f5efe4);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(213, 193, 137, 0.16);
    padding: 50px;
    position: relative;
}

.form-section-title {
    font-size: 1.8rem;
    color: #231d18;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(213, 193, 137, 0.22);
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-section-title i {
    color: #8a6d2f;
}

.modern-form-group {
    margin-bottom: 28px;
}

.modern-label {
    display: block;
    font-weight: 600;
    color: #3f372f;
    margin-bottom: 10px;
    font-size: 1rem;
}

.modern-label i {
    color: #8a6d2f;
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.modern-input,
.modern-select,
.modern-textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid rgba(213, 193, 137, 0.18);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.84);
    color: #231d18;
}

.modern-input:focus,
.modern-select:focus,
.modern-textarea:focus {
    outline: none;
    border-color: #c8a560;
    box-shadow: 0 0 0 4px rgba(200, 165, 96, 0.12);
}

.modern-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.modern-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%238a6d2f' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.price-preview-card {
    background: linear-gradient(135deg, rgba(200, 165, 96, 0.12) 0%, rgba(241, 229, 196, 0.7) 100%);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    margin-top: 20px;
    border: 1px solid rgba(213, 193, 137, 0.14);
}

.price-preview-card .label {
    font-size: 0.9rem;
    color: #655c51;
    margin-bottom: 10px;
    display: block;
}

.price-preview-card .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #8a6d2f;
    line-height: 1;
}

.radio-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 10px;
}

.radio-card-modern {
    position: relative;
}

.radio-card-modern input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-card-modern label {
    display: block;
    padding: 24px;
    border: 1px solid rgba(213, 193, 137, 0.16);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: rgba(255, 255, 255, 0.78);
}

.radio-card-modern input:checked + label {
    border-color: rgba(200, 165, 96, 0.42);
    background: linear-gradient(135deg, rgba(200, 165, 96, 0.12), rgba(241, 229, 196, 0.5));
    box-shadow: 0 12px 26px rgba(200, 165, 96, 0.16);
}

.radio-card-modern label:hover {
    border-color: rgba(200, 165, 96, 0.42);
    transform: translateY(-2px);
}

.radio-card-modern label i {
    font-size: 2.5rem;
    color: #8a6d2f;
    display: block;
    margin-bottom: 12px;
}

.radio-card-modern label strong {
    display: block;
    color: #231d18;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.radio-card-modern label small {
    color: #655c51;
    font-size: 0.9rem;
}

.upload-zone-modern {
    border: 2px dashed rgba(213, 193, 137, 0.24);
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.72);
    margin-top: 10px;
}

.upload-zone-modern:hover {
    border-color: rgba(200, 165, 96, 0.42);
    background: rgba(200, 165, 96, 0.08);
    transform: scale(1.01);
}

.upload-zone-modern i {
    font-size: 4rem;
    color: #8a6d2f;
    display: block;
    margin-bottom: 20px;
}

.upload-zone-modern p {
    margin: 0 0 10px 0;
    color: #655c51;
    font-size: 1.1rem;
}

.upload-zone-modern strong {
    color: #8a6d2f;
    font-size: 1rem;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.photo-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    padding-top: 100%;
    background: rgba(34, 34, 34, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.photo-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e74c3c;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.photo-remove-btn:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.15);
}

.info-box {
    background: linear-gradient(135deg, rgba(200, 165, 96, 0.12) 0%, rgba(241, 229, 196, 0.7) 100%);
    padding: 24px;
    border-radius: 16px;
    margin-top: 30px;
    border-left: 4px solid #c8a560;
}

.info-box h4 {
    color: #8a6d2f;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.info-box ul {
    margin: 0;
    padding-left: 25px;
    color: #655c51;
    line-height: 1.8;
}

.info-box ul li {
    margin-bottom: 6px;
}

.checkbox-modern {
    display: flex;
    align-items: start;
    gap: 12px;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.68);
    border-radius: 12px;
    border: 1px solid rgba(213, 193, 137, 0.14);
}

.checkbox-modern input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-modern label {
    cursor: pointer;
    color: #3f372f;
    line-height: 1.6;
}

.checkbox-modern a {
    color: #8a6d2f;
    font-weight: 600;
    text-decoration: none;
}

.checkbox-modern a:hover {
    text-decoration: underline;
}

.submit-btn-modern {
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, #b99552 0%, #d9c793 55%, #f1e5c4 100%);
    color: #1a1815;
    border: none;
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 14px 32px rgba(200, 165, 96, 0.24);
}

.submit-btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(200, 165, 96, 0.28);
}

.submit-btn-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.sidebar-tips {
    background: linear-gradient(135deg, rgba(200, 165, 96, 0.12) 0%, rgba(241, 229, 196, 0.72) 100%);
    padding: 30px;
    border-radius: 16px;
    margin-top: 40px;
    border-left: 4px solid #c8a560;
}

.sidebar-tips h4 {
    color: #8a6d2f;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-tips ul {
    margin: 0;
    padding-left: 25px;
    color: #655c51;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    .create-service-hero {
        padding: 60px 20px 40px;
    }

    .create-service-hero h1 {
        font-size: 2rem;
    }

    .create-service-hero p {
        font-size: 1.1rem;
    }

    .modern-form-container {
        margin: -30px 15px 40px;
        padding: 30px 20px;
        border-radius: 20px;
    }

    .form-grid-2,
    .radio-cards-grid {
        grid-template-columns: 1fr;
    }

    .form-section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .create-service-hero {
        padding: 50px 16px 35px;
    }

    .create-service-hero h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .create-service-hero p {
        font-size: 1rem;
    }

    .modern-form-container {
        margin: -20px 10px 30px;
        padding: 24px 16px;
        border-radius: 16px;
    }

    .form-section-title {
        font-size: 1.25rem;
        flex-wrap: wrap;
        gap: 8px;
    }

    .modern-form-group {
        margin-bottom: 20px;
    }

    .modern-label {
        font-size: 0.95rem;
    }

    .modern-input,
    .modern-select,
    .modern-textarea {
        padding: 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .modern-textarea {
        min-height: 120px;
    }

    .radio-card-modern label {
        padding: 16px;
    }

    .radio-card-modern .icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .upload-zone-modern {
        padding: 30px 16px;
    }

    .btn-submit-modern {
        padding: 16px 24px;
        font-size: 1rem;
    }
}

/* Dark mode */
body.dark-mode .modern-form-container {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)), rgba(29, 29, 29, 0.96);
    border-color: rgba(213, 193, 137, 0.12);
}

body.dark-mode .modern-input,
body.dark-mode .modern-select,
body.dark-mode .modern-textarea {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(213, 193, 137, 0.12);
    color: #f3ede3;
}

body.dark-mode .modern-label,
body.dark-mode .form-section-title {
    color: #f3ede3;
}

body.dark-mode .radio-card-modern label {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(213, 193, 137, 0.12);
}

body.dark-mode .radio-card-modern label strong {
    color: #f3ede3;
}

body.dark-mode .upload-zone-modern {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(213, 193, 137, 0.12);
}

body.dark-mode .checkbox-modern {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .checkbox-modern label {
    color: #f3ede3;
}
