:root {
    --primary-color: #000000;
    --secondary-color: #4b4b4b;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #2ecc71;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--dark-color);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
    font-size: 2.5rem;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: normal;
}

.progress-bar {
    margin-bottom: 40px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 10px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--dark-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-bottom: 5px;
    border: 3px solid var(--light-color);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--secondary-color);
}

.step-label {
    font-size: 0.9rem;
    text-align: center;
    color: #7f8c8d;
}

.step.active .step-label {
    color: var(--dark-color);
    font-weight: bold;
}

.progress-line {
    height: 4px;
    background-color: var(--light-color);
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    margin-bottom: 20px;
    color: var(--dark-color);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

/* Social Media Icons */
.with-icon label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.icon-left {
    position: absolute;
    left: 15px;
    color: #7f8c8d;
    font-size: 1.1rem;
}

.input-with-icon input {
    padding-left: 40px !important;
}

/* Specific social media colors on focus */
#facebook:focus {
    border-color: #3b5998 !important;
}

#instagram:focus {
    border-color: #e1306c !important;
}

#linkedin:focus {
    border-color: #0077b5 !important;
}

#otherLink:focus {
    border-color: var(--primary-color) !important;
}

.input-with-icon #facebook:focus ~ .icon-left {
    color: #3b5998;
}

.input-with-icon #instagram:focus ~ .icon-left {
    color: #e1306c;
}

.input-with-icon #linkedin:focus ~ .icon-left {
    color: #0077b5;
}

.input-with-icon #otherLink:focus ~ .icon-left {
    color: var(--primary-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="color"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

input[type="file"] {
    width: 100%;
    padding: 10px 10px 10px 40px;
    border: 1px dashed #ddd;
    border-radius: var(--border-radius);
    background-color: #f9f9f9;
}

input[type="color"] {
    height: 50px;
    padding: 5px;
    cursor: pointer;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn {
    background-color: #bdc3c7;
    color: var(--dark-color);
}

.prev-btn:hover {
    background-color: #95a5a6;
}

.next-btn, .submit-btn {
    background-color: var(--primary-color);
    color: white;
}

.next-btn:hover, .submit-btn:hover {
    background-color: var(--secondary-color);
}

/* Color Selection Styles */
.preview-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

.color-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.leger {
    font-weight: bold;
    color: var(--dark-color);
}

.color-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.color-circle:hover {
    transform: scale(1.1);
}

.color-circle[data-color="black"] {
    background-color: #000000;
}

.color-circle[data-color="blue"] {
    background-color: #192d63;
}

.color-circle[data-color="red"] {
    background-color: #732121;
}

.color-circle[data-color="green"] {
    background-color: #009a52;
}

.color-circle[data-color="purple"] {
    background-color: #8f00e1;
}

.color-circle.active {
    border-color: #0088ff;
    transform: scale(1.2);
}

.card-preview {
    width: 100%;
    max-width: 350px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0);
}

.card-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* Cropper.js styles */
.cropper-container {
    direction: ltr;
    font-size: 0;
    line-height: 0;
    position: relative;
    touch-action: none;
    user-select: none;
}

.cropper-crop-box, .cropper-drag-box, .cropper-modal, .cropper-wrap-box {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.cropper-drag-box {
    background-color: #fff;
    opacity: 0;
}

.cropper-modal {
    background-color: #000;
    opacity: 0.5;
}

.cropper-view-box {
    display: block;
    height: 100%;
    outline: 1px solid #39f;
    outline-color: rgba(51, 153, 255, 0.75);
    overflow: hidden;
    width: 100%;
}

.cropper-dashed {
    border: 0 dashed #eee;
    display: block;
    opacity: 0.5;
    position: absolute;
}

.cropper-point {
    background-color: #39f;
    height: 5px;
    opacity: 0.75;
    position: absolute;
    width: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .color-selector {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .leger {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .progress-steps {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step {
        flex-direction: row;
        align-items: center;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .step-number {
        margin-right: 10px;
        margin-bottom: 0;
    }
    
    .progress-line {
        display: none;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .card-preview {
        max-width: 280px;
    }
}