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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.85) 0%,
        rgba(118, 75, 162, 0.85) 100%
    );
    backdrop-filter: blur(2px);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 40px 20px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    letter-spacing: 0.3px;
}

/* Contact Section */
.contactSection {
    padding: 0;
    background: transparent;
}

.contactCard {
    max-width: 980px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
    padding: 28px 28px 30px;
    backdrop-filter: blur(10px);
}

.contactCardTitle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.contactIcon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: rgba(37, 99, 235, 0.95);
    font-size: 18px;
}

.contactCardTitle h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.92);
}

/* Form */
.contactForm {
    width: 100%;
}

.formGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 14px;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.82);
}

.req {
    color: #ef4444;
    font-weight: 800;
    margin-left: 4px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(255, 255, 255, 0.95);
    padding: 14px 14px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    color: rgba(15, 23, 42, 0.88);
    font-family: inherit;
}

.field textarea {
    padding: 14px 14px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.field select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(15, 23, 42, 0.45) 50%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.45) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 40px;
    cursor: pointer;
}

.fieldFull {
    margin-top: 18px;
}

.formActions {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.submitBtn {
    width: min(720px, 100%);
    height: 62px;
    border-radius: 999px;
    border: none;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.92));
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.08s ease, filter 0.15s ease;
}

.submitBtn:hover {
    filter: brightness(1.02);
}

.submitBtn:active {
    transform: translateY(1px);
}

.btnIcon {
    font-size: 18px;
    transform: translateY(-1px);
}

/* Success Message */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.success-message.hidden {
    display: none;
}

.success-content {
    background: white;
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

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

.success-icon {
    margin-bottom: 24px;
}

.success-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 16px;
}

.success-content p {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.8;
}

/* Loading State */
.submitBtn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submitBtn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 820px) {
    .header h1 {
        font-size: 34px;
    }
    
    .header p {
        font-size: 16px;
    }
    
    .contactCard {
        padding: 22px 18px 24px;
    }
    
    .formGrid {
        grid-template-columns: 1fr;
    }
    
    .submitBtn {
        height: 58px;
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 30px 20px;
        margin-bottom: 24px;
    }

    .header h1 {
        font-size: 1.875rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .contactSection {
        padding: 40px 0 50px;
    }

    .contactCard {
        border-radius: 16px;
    }

    .contactCardTitle h3 {
        font-size: 20px;
    }

    .formGrid {
        gap: 20px;
    }

    .success-content {
        padding: 32px 24px;
    }

    .success-content h3 {
        font-size: 1.5rem;
    }

    .success-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.875rem;
    }

    .contactCard {
        padding: 20px 16px;
    }

    .contactIcon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .contactCardTitle h3 {
        font-size: 18px;
    }

    .field input,
    .field select,
    .field textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .submitBtn {
        height: 54px;
        font-size: 16px;
    }
}