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

body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

.campaign-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.campaign-layout {
    width: 100vw;
    height: 100vh;
    background: rgb(0, 0, 0);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    display: flex;
    position: relative;
}

.campaign-sidebar {
    width: 40vw;
    position: relative;
    overflow: hidden;
}

.campaign-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.campaign-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.tagline {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: white;
}

.tagline h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.campaign-content {
    width: 60vw;
    padding: 0;
    background: #0a0a0a;
    position: relative;
    overflow-y: auto;
    max-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.campaign-form-container {
    width: 100%;
    max-width: 560px;
    padding: 40px;
}

.campaign-header {
    position: fixed;
    top: 0;
    left: 40vw;
    right: 0;
    height: 80px;
    background: #0a0a0a;
    z-index: 1001;
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.back-to-home {
    position: relative;
    background: rgba(51, 143, 66, 0.1);
    border: 2px solid #338f42;
    border-radius: 8px;
    color: #338f42;
    cursor: pointer;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
}

.back-to-home:hover {
    background: #338f42;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(51, 143, 66, 0.3);
}

.back-arrow {
    font-size: 1.2rem;
    font-weight: bold;
}

.back-text {
    white-space: nowrap;
}

.form-header {
    margin-top: 100px;
    margin-bottom: 30px;
}

.form-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-indicator span {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #444;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 16.67%;
    height: 100%;
    background: linear-gradient(135deg, #338f42, #2d7a3a);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

.campaign-form {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.form-group label {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
}

.form-group input,
.form-group textarea,
.form-group select {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    padding: 12px 16px;
    border: 2px solid #444;
    border-radius: 8px;
    background: #333;
    color: #fff;
    transition: all 0.3s ease;
}

.form-group select {
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #338f42;
    box-shadow: 0 0 0 3px rgba(51, 143, 66, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
}

input[name="rewardQuantity"] {
    width: 120px;
    max-width: 120px;
}

.amount-input {
    display: flex;
    gap: 10px;
}

.amount-input input {
    flex: 1;
}

.amount-input select {
    min-width: 100px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #fff;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #338f42;
}

.upload-area,
.gallery-upload {
    border: 2px dashed #666;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #333;
}

.upload-area:hover,
.gallery-upload:hover {
    border-color: #338f42;
    background: #444;
}

.upload-content span {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.upload-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 5px;
}

.upload-content small {
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    color: #ccc;
}

.upload-area.has-image {
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
}

.image-preview-container {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    display: inline-block;
}

.uploaded-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    color: #ff4444;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
}

.remove-image-btn:hover {
    background: #ff4444;
    color: white;
    transform: scale(1.1);
}

.gallery-upload.has-gallery-images {
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
}

.gallery-images-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
}

.gallery-image-container {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.gallery-uploaded-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.remove-gallery-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    color: #ff4444;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
}

.remove-gallery-btn:hover {
    background: #ff4444;
    color: white;
    transform: scale(1.1);
}

.gallery-add-container {
    width: 120px;
    height: 120px;
    border: 2px dashed #666;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #333;
    flex-shrink: 0;
    text-align: center;
}

.gallery-add-container:hover {
    border-color: #338f42;
    background: #444;
}

.gallery-add-container .add-icon {
    font-size: 2rem;
    color: #666;
    margin-bottom: 8px;
    display: block;
}

.gallery-add-container:hover .add-icon {
    color: #338f42;
}

.gallery-add-container p {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    margin: 0;
    margin-bottom: 4px;
}

.gallery-add-container small {
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    color: #ccc;
    margin: 0;
}

.rewards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reward-item {
    border: 1px solid #555;
    border-radius: 8px;
    padding: 20px;
    background: #333;
}

.reward-item h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.company-profile {
    border: 1px solid #555;
    border-radius: 8px;
    padding: 20px;
    background: #333;
    margin-top: 20px;
}

.company-profile h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}

.summary-panel {
    background: #333;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.summary-panel h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #555;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: #ccc;
}

.summary-value {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #fff;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 60%;
    text-align: right;
}


.campaign-form p,
.summary-item,
.summary-value,
.form-group p,
.reward-item p {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    box-sizing: border-box;
}


.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(3px);
    animation: alertOverlayFadeIn 0.3s ease-out;
}

.custom-alert-box {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 2px solid;
    animation: alertBoxSlideIn 0.3s ease-out;
    position: relative;
}

.custom-alert-box.success {
    border-color: #338f42;
}

.custom-alert-box.error {
    border-color: #ff4444;
}

.custom-alert-box.warning {
    border-color: #ff9500;
}

.custom-alert-box.info {
    border-color: #0066cc;
}

.alert-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.alert-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.alert-message {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 25px;
    white-space: pre-line;
}

.alert-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.alert-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.alert-btn.primary {
    background: #338f42;
    color: white;
}

.alert-btn.primary:hover {
    background: #2d7a3a;
    transform: translateY(-1px);
}

.alert-btn.secondary {
    background: #444;
    color: #e0e0e0;
}

.alert-btn.secondary:hover {
    background: #555;
    transform: translateY(-1px);
}

.alert-btn.danger {
    background: #ff4444;
    color: white;
}

.alert-btn.danger:hover {
    background: #e63939;
    transform: translateY(-1px);
}


@keyframes alertOverlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes alertBoxSlideIn {
    from {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}


@media (max-width: 768px) {
    .custom-alert-box {
        padding: 25px;
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .alert-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .alert-title {
        font-size: 1.2rem;
    }
    
    .alert-message {
        font-size: 0.95rem;
    }
    
    .alert-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .alert-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .custom-alert-box {
        padding: 20px;
        margin: 15px;
        width: calc(100% - 30px);
    }
    
    .alert-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .alert-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .alert-message {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
}

.summary-cover-container {
    margin-bottom: 20px;
    text-align: center;
}

.summary-cover-image {
    max-width: auto;
    max-height: 150px;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #555;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #fff;
}

.checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #338f42;
}

.form-navigation {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: space-between;
    align-items: center;
}

.form-navigation button {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 120px;
}

.form-navigation button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #338f42, #2d7a3a);
    color: white;
    box-shadow: 0 4px 20px rgba(51, 143, 66, 0.4);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(51, 143, 66, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #338f42;
    border: 2px solid #338f42;
}

.btn-secondary:hover {
    background: #338f42;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(51, 143, 66, 0.3);
}

.form-navigation #prevBtn {
    margin-right: auto;
}

.form-navigation #nextBtn,
.form-navigation #publishBtn {
    margin-left: auto;
}

.skip-btn {
    background: transparent;
    color: #ffffff;
    border: 2px solid #666;
    transition: all 0.3s ease;
}

.skip-btn:hover {
    background: #338f428a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 102, 102, 0.3);
}

@media (max-width: 768px) {
    .campaign-layout {
        flex-direction: column;
    }
    
    .campaign-sidebar {
        display: none;
        width: auto;
    }
    
    .campaign-content {
        width: 100vw;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: 100vh;
    }
    
    .campaign-form-container {
        padding: 30px 20px 40px 20px;
        min-height: auto;
    }
    
    .campaign-header {
        left: 0;
        height: 70px;
        padding-left: 15px;
    }
    
    .back-to-home {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .back-arrow {
        font-size: 1rem;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .tagline h2 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .amount-input {
        flex-direction: column;
    }
    
    .amount-input select {
        min-width: auto;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .campaign-form-container {
        padding: 25px 15px 40px 15px;
        min-height: auto;
    }
    
    .form-header h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .campaign-form {
        gap: 30px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
        margin-top: 30px;
        padding-bottom: 20px;
    }
    
    .form-navigation button {
        width: 100%;
        min-width: auto;
    }
    
    .upload-area,
    .gallery-upload {
        padding: 20px;
    }
    
    .reward-item {
        padding: 15px;
    }
}


.summary-section {
    margin-bottom: 25px;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    background: #2a2a2a;
}

.summary-section h5 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #338f42;
    margin: 0 0 15px 0;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
}

.summary-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.summary-gallery-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid #444;
    transition: border-color 0.3s ease;
}

.summary-gallery-thumb:hover {
    border-color: #338f42;
}
