:root[data-theme="dark"] {
    --primary-color: #00BCD4;
    --primary-dark: #006064;
    --background-gradient-start: #1a1a1a;
    --background-gradient-end: #0d0d0d;
    --form-background: rgba(30, 30, 30, 0.95);
    --text-color: #ffffff;
}

:root[data-theme="light"] {
    --primary-color: #00BCD4;
    --primary-dark: #006064;
    --background-gradient-start: #ffffff;
    --background-gradient-end: #ffffff;
    --form-background: #ffffff;
    --text-color: #333333;
}

:root {
    --primary-color: #00BCD4;
    --primary-dark: #006064;
    --background-gradient-start: #1a1a1a;
    --background-gradient-end: #0d0d0d;
    --form-background: rgba(30, 30, 30, 0.95);
}

@media (prefers-color-scheme: light) {
    :root {
        --primary-color: #00BCD4;
        --primary-dark: #006064;
        --background-gradient-start: #E0F7FA;
        --background-gradient-end: #B2EBF2;
        --form-background: rgba(255, 255, 255, 0.95);
    }
}

body {
    background: linear-gradient(135deg, var(--background-gradient-start) 0%, var(--background-gradient-end) 100%);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px; /* Increased from 350px */
    text-align: center;
}

h1 {
    color: #ffffff;
    font-size: 2.2em;
    margin-bottom: 1.5em;
    font-weight: 600;
}

.icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

form {
    background-color: var(--form-background);
    padding: 2.5em;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    width: 95%; /* Increased from 90% */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 12px;
    text-align: left;
    font-size: 0.9em;
    color: #e0e0e0;
}

input[type="text"] {
    width: 85%; /* Increased from 80% */
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 2px solid rgba(0, 188, 212, 0.3);
    border-radius: 8px;
    background-color: #252525;
    color: #ffffff;
    font-size: 0.9em;
    transition: all 0.3s ease;
    background: rgba(30, 30, 30, 0.7);
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
}

input[type="submit"] {
    width: 50%; /* Adjusted for better proportion */
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: #ffffff;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
}

input[type="submit"]:active {
    transform: translateY(0);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 90%; /* Increased from 85% */
    margin: 20px auto;
    padding: 20px;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.radio-option {
    position: relative;
    padding: 15px 20px;
    border-radius: 12px;
    background: rgba(40, 40, 40, 0.5);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
}

.radio-option.selected {
    border-color: var(--primary-color);
    background: rgba(0, 188, 212, 0.1);
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.2);
}

.radio-option:hover {
    background: rgba(0, 188, 212, 0.15);
    transform: translateX(10px);
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    margin: 0;
    cursor: pointer;
}

radio-option input[type="radio"]:checked + label {
    color: var(--primary-color);
}

.radio-option input[type="radio"]:checked ~ .radio-option {
    border-color: var(--primary-color);
    background: rgba(0, 188, 212, 0.1);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.2);
}

.radio-option label {
    width: 100%;
    cursor: pointer;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section {
    position: relative;
    padding: 20px 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.section-title i {
    font-size: 1.2em;
}

.nested {
    margin-left: 20px;
    border-left: 2px solid var(--primary-color);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.nested.visible {
    opacity: 1;
    transform: translateY(0);
}

.custom-select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: rgba(30, 30, 30, 0.7);
    border: 2px solid rgba(0, 188, 212, 0.3);
    color: white;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
}

.collaborators-input {
    width: 85%; /* Increased from 80% */
    padding: 12px;
    border-radius: 8px;
    background: rgba(30, 30, 30, 0.7);
    border: 2px solid var(--primary-color);
    color: white;
    font-size: 0.9em;
    min-height: 100px;
    resize: vertical;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.collaborators-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
}

[data-theme="light"] .collaborators-input {
    background: #f5f5f5;
    color: #333333;
}

/* Ajoutez le style du bouton thème */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle i {
    color: white;
    font-size: 1.2em;
}

/* Ajoutez ces styles après les styles existants */
[data-theme="light"] h1 {
    color: #333333;
}

[data-theme="light"] label {
    color: #555555;
}

[data-theme="light"] input[type="text"] {
    background: #f5f5f5;
    color: #333333;
    border-color: rgba(0, 188, 212, 0.3);
}

[data-theme="light"] .radio-group {
    background: #e8e8e8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .radio-option {
    background: #ffffff;
    border: 1px solid #dddddd;
    color: #333333;
}

[data-theme="light"] .radio-option:hover {
    background: rgba(0, 188, 212, 0.1);
    transform: translateX(10px);
    border-color: var(--primary-color);
}

[data-theme="light"] .radio-option.selected {
    background: rgba(0, 188, 212, 0.15);
    border-color: var(--primary-color);
    color: #000000;
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.2);
}

[data-theme="light"] .radio-option label {
    color: #333333;
    font-weight: 500;
}

[data-theme="light"] .radio-option.selected label {
    color: var(--primary-dark);
    font-weight: 600;
}

[data-theme="light"] .radio-group {
    background: #f5f5f5;
}

[data-theme="light"] .radio-option {
    background: rgba(245, 245, 245, 0.9);
}

[data-theme="light"] .radio-option.selected {
    background: rgba(0, 188, 212, 0.1);
}

[data-theme="light"] .radio-option label {
    color: #333333;
}

[data-theme="light"] form {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

textarea {
    width: 85%;
    min-height: 120px;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid rgba(0, 188, 212, 0.3);
    border-radius: 8px;
    background: rgba(30, 30, 30, 0.7);
    color: #ffffff;
    font-size: 0.9em;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
    transition: all 0.3s ease;
}

textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
}

[data-theme="light"] textarea {
    background: #f5f5f5;
    color: #333333;
}

.nested-input {
    margin-left: 15px;
    padding: 8px 12px;
    background: rgba(30, 30, 30, 0.7);
    border: 2px solid rgba(0, 188, 212, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 0.9em;
    width: auto;
    min-width: 200px;
}

[data-theme="light"] .nested-input {
    background: #f5f5f5;
    color: #333333;
}

[data-theme="light"] .custom-select {
    background: #f5f5f5;
    color: #333333;
}

.submit-button {
    width: 50%;
    padding: 12px;
    margin: 10px auto;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: #ffffff;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button i {
    font-size: 1.1em;
}

.thankyou {
    text-align: center;
    font-size: 18px;
    color: var(--primary-color);
    margin-top: 20px;
  }


.input-as-textarea {
    width: 85%;
    min-height: 120px;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid rgba(0, 188, 212, 0.3);
    border-radius: 8px;
    background: rgba(30, 30, 30, 0.7);
    color: #ffffff;
    font-size: 0.9em;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    vertical-align: top;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.input-as-textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
}

[data-theme="light"] .input-as-textarea {
    background: #f5f5f5;
    color: #333333;
}



@media screen and (max-width: 768px) {

    body {
        padding: 0;
        margin: 0;
        overflow-x: hidden;
        width: 100%;
        min-height: 100vh;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    form {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 1.5em 1em;
        border-radius: 0;
        box-sizing: border-box;
    }

    .radio-group {
        padding: 15px;
        margin: 10px 0;
        border-radius: 10px;
    }

    .nested {
        margin-left: 0;
        width: 100%;
    }

    input[type="text"],
    textarea,
    .collaborators-input,
    .nested-input,
    .custom-select,
    .radio-group {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }

    .submit-button {
        width: 100%;
    }

    h1 {
        padding: 0 10px;
        font-size: 1.5em;
        margin: 1em 0;
    }

    .radio-group {
        width: 100%;
        padding: 15px;
    }

    .radio-option {
        padding: 12px 15px;
    }

    .nested {
        margin-left: 10px;
    }

    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    body {
        padding: 10px;
    }

    .input-as-textarea {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
}


@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }

    .icon {
        font-size: 2em;
    }

    form {
        padding: 1em;
    }

    .section-title {
        font-size: 0.9em;
    }

    label {
        font-size: 0.85em;
    }

    .radio-option label {
        font-size: 0.85em;
    }

    .radio-option {
        padding: 10px;
    }
}