@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Global Styles */
:root {
    --primary-color: #3a66fb;
    --secondary-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #e1e1e1;
    --text-color: #555;
    --font-family: 'Segoe UI', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    background-color: white;
}

.container {
    display: flex;
    flex-direction: row;
    max-width: 1360px;
    margin: 0 auto;
    padding: 40px 20px 0 20px;
}

/* Form Styles */
.form-container {
    max-width: 610px;
    height: 90vh;
    overflow: auto;
    padding-right: 20px;
}

.form-container h1 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--secondary-color);
    font-weight: 600;
    line-height: 30px;
}

.form-container h1 span {
    font-weight: 400;
}

.intro-text {
    color: var(--text-color);
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 20px;
}

.form-container h2 {
    color: #2E58D6;
    font-family: Poppins;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-transform: capitalize;
    margin-bottom: 8px;
}

.required {
    color: red;
    margin-left: 4px;
}

.form-container p {
    color: #212A37;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 5px;
}

.count-text-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.count-text-count {
    color: #212A37;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.form-container textarea {
    width: 100%;
    min-height: 120px;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #CAD3DF;
    background: #F9FAFE;
    font-family: Poppins;
    color: #212A37;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    resize: none;
    outline: none;
    box-shadow: none;
}

.form-container .text-area-height textarea {
    min-height: 58px;
}

.form-container textarea::placeholder {
    color: #95A7C0;
}

.form-container textarea.error {
    border-color: red;
    background-color: rgba(255, 0, 0, 0.03);
}

/* File Upload */
.file-upload {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.file-size-limit {
    background: #E8F2FF;
    border: 1px solid #B3D4FF;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 8px 0;
    color: #2E58D6;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.file-size-limit i {
    color: #2E58D6;
    font-size: 14px;
}

.file-size-limit strong {
    color: #1A365D;
    font-weight: 600;
}

.choose-file {
    border-radius: 4px;
    border: 1px solid #41526C;
    background: #FFF;
    padding: 8px 16px;
    cursor: pointer;
    font-family: Poppins;
    color: #41526C;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.file-chosen {
    margin-left: 15px;
    color: #2E58D6;
    font-size: 15px;
    font-weight: 500;
    line-height: 24px;
}

/* Dropdown */
.dropdown {
    position: relative;
    width: 100%;
}

.dropdown-btn {
    width: 100%;
    text-align: left;
    padding: 12px 15px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0 0 4px 4px;
    z-index: 10;
    max-height: 260px;
    overflow-y: auto;
}

.dropdown-content.show {
    display: block;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 16px;
    width: 16px;
    border-radius: 1px;
    border: 1px solid #95A7C0;
    background: #FFF;
    transition: all 0.2s ease;
}

.custom-checkbox:hover input~.checkmark {
    background-color: #E5EAFA;
}

.custom-checkbox input:checked~.checkmark {
    background-color: #FFF;
    border-color: #95A7C0;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 5px;
    top: 1px;
    width: 3px;
    height: 7px;
    border: solid #151515;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #E5EAFA;
}

.dropdown-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-item input[type="checkbox"],
.dropdown-item input[type="radio"] {
    margin-right: 8px;
}

.add-option-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 10px 0;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    margin-top: 10px;
    font-weight: 500;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    margin-top: 22px;
}

.submit-btn {
    border-radius: 4px;
    width: 254px;
    padding: 8px 16px;
    background: #2E58D6;
    border: none;
    color: #FFF;
    font-family: Poppins;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    cursor: pointer;
}

/* Preview Section */
.preview-container {
    padding-left: 80px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.website-preview {
    position: relative;
    width: 100%;
}

.preview-img {
    width: 100%;
    max-height: 92vh;
}

.mb-0 {
    margin-bottom: 0 !important;
}

/* Success Container */
.success-container {
    background: #F9FAFE;
    padding: 48px 24px;
    max-width: 1000px;
    margin: 40px auto 0 auto;
    text-align: center;
    box-shadow: 0px 4px 40px 0px rgba(29, 57, 95, 0.08);
    border-radius: 20px;
    min-height: 500px;
    display: none;
    align-items: center;
    justify-content: center;
}

.success-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.success-title {
    color: #212A37;
    text-align: center;
    font-family: Poppins;
    font-size: 28px;
    font-weight: 600;
    line-height: 32px;
}

.success-title .emoji {
    font-size: 1.5rem;
}

.success-message {
    color: #212A37;
    text-align: center;
    font-family: Poppins;
    font-size: 24px;
    font-weight: 400;
    line-height: 34px;
}

.form-group-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 12px 0 0 0;
}

.form-group-section .form-section {
    margin-bottom: 20px;
    width: 100%;
}

.form-group-section .form-control {
    width: 100%;
    padding: 8px 16px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #CAD3DF;
    background: #F9FAFE;
    font-family: Poppins;
    color: #212A37;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    box-shadow: none;
    outline: none;
}

.form-group-section .form-control::placeholder {
    color: #95A7C0;
}

.form-section.count-text {
    margin-bottom: 14px;
}

::-webkit-scrollbar-track {
    background-color: #ffffff;
}

::-webkit-scrollbar {
    width: 4px;
    background-color: #ffffff;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #ffffff;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .form-container {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .preview-container {
        order: -1;
        /* Move preview to top on mobile */
        margin-bottom: 30px;
        padding: 0;
    }

    .preview-img {
        max-width: 100%;
    }

    .website-preview {
        margin-top: 0;
    }

    .form-container {
        max-width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .form-containerh1 {
        font-size: 28px;
    }

    .form-section {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 480px) {
    .file-upload {
        align-items: flex-start;
    }

    .file-chosen {
        margin-top: 10px;
    }

    .form-navigation {
        flex-direction: column;
    }

    .prev-btn,
    .submit-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

.upload-success {
    color: #28a745;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 8px 12px;
    margin-top: 8px;
    border-radius: 4px;
    font-size: 14px;
    animation: fadeOut 3s forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}