* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0a1a0a;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════
   Scenic Background Slideshow
   ═══════════════════════════════════════════ */
.scenic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.scenic-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
}

.scenic-slide.active {
    opacity: 1;
}

.scenic-slide-1 {
    background-image: url('https://images.unsplash.com/photo-1433086966358-54859d0ed716?w=1920&q=80');
}

.scenic-slide-2 {
    background-image: url('https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=1920&q=80');
}

.scenic-slide-3 {
    background-image: url('https://images.unsplash.com/photo-1448375240586-882707db888b?w=1920&q=80');
}

.scenic-slide-4 {
    background-image: url('https://images.unsplash.com/photo-1501854140801-50d01698950b?w=1920&q=80');
}

.scenic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        160deg,
        rgba(8, 50, 28, 0.58) 0%,
        rgba(16, 36, 72, 0.48) 50%,
        rgba(55, 18, 72, 0.42) 100%
    );
}

/* ═══════════════════════════════════════════
   Container
   ═══════════════════════════════════════════ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══════════════════════════════════════════
   Header
   ═══════════════════════════════════════════ */
header {
    background: linear-gradient(
        135deg,
        rgba(30, 110, 65, 0.88) 0%,
        rgba(38, 78, 120, 0.88) 50%,
        rgba(90, 50, 140, 0.88) 100%
    );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: white;
    padding: 2.2rem 0;
    text-align: center;
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.35);
    border-bottom: 3px solid rgba(255, 255, 255, 0.12);
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    text-shadow: 2px 3px 10px rgba(0, 0, 0, 0.35);
    letter-spacing: 1.5px;
}

header p {
    font-size: 1.15rem;
    opacity: 0.92;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════
   Main Content
   ═══════════════════════════════════════════ */
main {
    padding: 3rem 0;
    position: relative;
    z-index: 1;
}

.form-container {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    padding: 3rem;
    border-radius: 18px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.12);
    margin: 0 auto;
    max-width: 820px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.form-container h2 {
    font-family: 'Playfair Display', serif;
    color: #164a2c;
    margin-bottom: 0.8rem;
    font-size: 2.1rem;
    text-align: center;
}

.form-subtitle {
    text-align: center;
    color: #555;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* ═══════════════════════════════════════════
   Form Status Banner
   ═══════════════════════════════════════════ */
.form-status {
    padding: 1rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-align: center;
    font-weight: 500;
    animation: statusFadeIn 0.3s ease;
}

@keyframes statusFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-status.sending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.form-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}

.form-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #dc3545;
}

/* ═══════════════════════════════════════════
   Form Sections
   ═══════════════════════════════════════════ */
.section {
    margin-bottom: 2.5rem;
    padding: 1.8rem;
    border: 1px solid rgba(30, 110, 65, 0.18);
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        rgba(30, 110, 65, 0.04) 0%,
        rgba(38, 78, 120, 0.04) 100%
    );
}

.section h3 {
    color: #164a2c;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #2e8b57;
    padding-bottom: 0.5rem;
}

.section-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    margin-top: -0.5rem;
}

/* ═══════════════════════════════════════════
   Form Groups
   ═══════════════════════════════════════════ */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #3a3a3a;
}

input[type="text"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.78rem 0.9rem;
    border: 2px solid #ccc;
    border-radius: 9px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.92);
}

input[type="text"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2e8b57;
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.18);
    background: #fff;
}

small {
    color: #777;
    font-size: 0.88rem;
    margin-top: 0.25rem;
    display: block;
}

/* ═══════════════════════════════════════════
   Conditional Fields Animation
   ═══════════════════════════════════════════ */
.conditional-field {
    animation: slideDown 0.4s ease-out forwards;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════
   Photo Upload Area
   ═══════════════════════════════════════════ */
.upload-area {
    border: 2px dashed rgba(46, 139, 87, 0.38);
    border-radius: 14px;
    padding: 2.8rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(46, 139, 87, 0.025);
    margin-bottom: 1.2rem;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #2e8b57;
    background: rgba(46, 139, 87, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46, 139, 87, 0.12);
}

.upload-icon {
    font-size: 3.2rem;
    margin-bottom: 0.8rem;
}

.upload-area p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.upload-link {
    color: #2e8b57;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.upload-area small {
    color: #888;
}

/* ═══════════════════════════════════════════
   Photo Preview Grid
   ═══════════════════════════════════════════ */
.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.photo-preview-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    animation: photoFadeIn 0.35s ease forwards;
}

@keyframes photoFadeIn {
    from { opacity: 0; transform: scale(0.88); }
    to { opacity: 1; transform: scale(1); }
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-remove-btn {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 28px;
    height: 28px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    line-height: 1;
}

.photo-remove-btn:hover {
    background: #c82333;
    transform: scale(1.18);
}

.photo-file-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    color: white;
    padding: 22px 8px 7px;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════
   Word Counter
   ═══════════════════════════════════════════ */
.word-counter {
    text-align: right;
    font-size: 0.82rem;
    color: #888;
    margin-top: 0.35rem;
    transition: color 0.3s ease;
}

.word-counter.near-limit {
    color: #e67e22;
    font-weight: 500;
}

.word-counter.at-limit {
    color: #e74c3c;
    font-weight: 600;
}

/* ═══════════════════════════════════════════
   Form Actions
   ═══════════════════════════════════════════ */
.form-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.submit-btn, .reset-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.3px;
}

.submit-btn {
    background: linear-gradient(135deg, #2e8b57 0%, #3cb371 100%);
    color: white;
    box-shadow: 0 8px 22px rgba(46, 139, 87, 0.35);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #246e47 0%, #2e8b57 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(46, 139, 87, 0.45);
}

.submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.reset-btn {
    background: #8e9e9a;
    color: white;
}

.reset-btn:hover {
    background: #6d847f;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   Modal
   ═══════════════════════════════════════════ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 12% auto;
    padding: 2.5rem;
    border-radius: 18px;
    width: 85%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    animation: modalPop 0.35s ease forwards;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.88) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: #164a2c;
}

.modal-content p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
}

.close {
    position: absolute;
    right: 1.1rem;
    top: 0.9rem;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #333;
}

.modal-btn {
    background: linear-gradient(135deg, #2e8b57 0%, #3cb371 100%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1.2rem;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: linear-gradient(135deg, #246e47 0%, #2e8b57 100%);
}

/* ═══════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════ */
footer {
    background: rgba(16, 36, 26, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 3px solid rgba(46, 139, 87, 0.25);
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .form-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .form-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .submit-btn, .reset-btn {
        width: 100%;
        margin: 0;
    }

    .photo-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .upload-area {
        padding: 1.5rem;
    }

    .section {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.6rem;
    }

    .form-container {
        padding: 1rem;
        border-radius: 12px;
    }

    .form-container h2 {
        font-size: 1.5rem;
    }
}