.yi-contact-page {
    background-color: #0d0d0d;
    padding: 120px 0 80px 0;
    min-height: 100vh;
    color: #ffffff;
    font-family: 'Noto Sans JP', sans-serif;
}

.yi-contact-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.yi-contact-header {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.yi-contact-subtitle {
    color: var(--primary-color);
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.yi-contact-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.yi-contact-line {
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.yi-contact-form-wrapper {
    background-color: transparent;
    max-width: 600px;
    margin: 0 auto;
}

.yi-contact-error {
    background-color: rgba(255, 60, 60, 0.1);
    color: #ff3c3c;
    border: 1px solid rgba(255, 60, 60, 0.3);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
}

.yi-form-group {
    margin-bottom: 30px;
}

.yi-form-group label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.yi-badge-required {
    background-color: rgba(255, 107, 26, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(255, 107, 26, 0.3);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 10px;
    font-weight: 700;
}

.yi-badge-optional {
    background-color: rgba(255, 255, 255, 0.1);
    color: #aaaaaa;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 10px;
    font-weight: 700;
}

.yi-form-group input[type="text"],
.yi-form-group input[type="email"],
.yi-form-group input[type="tel"],
.yi-form-group textarea,
.yi-form-group select {
    width: 100%;
    background-color: #1a1a1c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 15px 20px;
    font-size: 15px;
    border-radius: 4px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: inherit;
}

.yi-form-group input:focus,
.yi-form-group textarea:focus,
.yi-form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #222224;
}

.yi-form-group input::placeholder,
.yi-form-group textarea::placeholder {
    color: #666666;
}

.yi-select-wrapper {
    position: relative;
}

.yi-select-wrapper::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #aaaaaa;
    pointer-events: none;
}

.yi-form-group select {
    appearance: none;
    cursor: pointer;
}

.yi-form-submit {
    text-align: center;
    margin-top: 50px;
}

button[type="submit"].yi-submit-btn {
    width: 100%;
    max-width: 250px;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"].yi-submit-btn:hover {
    background-color: #e65c00;
}

.yi-contact-desc {
    color: #aaaaaa;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
    text-align: center;
}

.yi-contact-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.yi-contact-card {
    background-color: #1a1a1c;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 30px 20px;
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.yi-contact-card:hover {
    background-color: #222224;
}

.yi-contact-card.active {
    border-color: var(--primary-color);
}

.yi-card-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.yi-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.yi-card-desc {
    font-size: 12px;
    color: #aaaaaa;
    margin: 0;
    line-height: 1.5;
}

.yi-form-row {
    display: flex;
    gap: 20px;
}

.yi-form-col {
    flex: 1;
}

.yi-form-privacy {
    text-align: center;
    margin-top: 40px;
}

.yi-checkbox-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    color: #ffffff;
}

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

.yi-checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 1px solid #666666;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.yi-checkbox-container:hover input ~ .yi-checkmark {
    border-color: var(--primary-color);
}

.yi-checkbox-container input:checked ~ .yi-checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

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

.yi-checkbox-container .yi-checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.yi-privacy-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.yi-form-footer-note {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: #aaaaaa;
    line-height: 1.6;
}

/* Success Message State */
.yi-contact-success-box {
    text-align: center;
    padding: 60px 40px;
    max-width: 600px;
    margin: 0 auto;
    background-color: #1a1a1c;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.yi-success-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.yi-success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 20px 0;
}

.yi-success-desc {
    color: #aaaaaa;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .yi-contact-title {
        font-size: 32px;
    }
    
    .yi-contact-cards {
        flex-direction: column;
    }
    
    .yi-form-row {
        flex-direction: column;
        gap: 0;
    }
}
