﻿.reg-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 40px 40px 40px;
}

.form-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #015030;
    padding: 40px;
    background-color: #f6f6f6;
}

.account-type {
    text-align: center;
    margin-bottom: 40px;
}

    .account-type label {
        display: inline-flex;
        align-items: center;
        margin: 0 30px;
        font-size: 16px;
        cursor: pointer;
    }

    .account-type input[type="radio"] {
        margin-right: 8px;
        width: 18px;
        height: 18px;
        accent-color: #015030;
    }

        .account-type input[type="radio"]:checked {
            background-color: #015030;
            border-color: #015030;
        }

.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    width: 100%;
    cursor: pointer;
    user-select: none;
    position: relative;
}

    .section-title .section-title-content {
        width: fit-content;
        border-bottom: 3px solid #015030;
        padding-bottom: 15px;
    }

.dropdown-icon {
    width: 12px;
    transition: transform 0.3s ease;
    color: #015030;
    margin-bottom: 15px;
}

    .dropdown-icon.expanded {
        transform: rotate(180deg);
    }

.section-content {
    padding-top: 25px;
    /*transition: all 0.3s ease;*/
}

    .section-content.collapsed {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
        padding-top: 0;
        overflow: hidden;
    }

    .section-content.expanded {
        max-height: 2000px;
        opacity: 1;
    }

.form-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

    .form-row:last-child {
        margin-bottom: 0;
    }

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.form-row:last-child .form-group {
    margin-bottom: 0;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group select {
    padding: 13px 15px;
}

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: none;
        box-shadow: 0 0 0 1px #015030;
    }

.form-group input.error {
    border-color: #ff4444;
}

    .form-group input.error:focus {
        box-shadow: 0 0 0 1px #ff4444;
    }

.form-group select.error {
    border-color: #ff4444;
}

    .form-group select.error:focus {
        box-shadow: 0 0 0 1px #ff4444;
    }

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 12px;
}

    .radio-group label {
        display: flex;
        align-items: center;
        margin-bottom: 0;
        cursor: pointer;
        font-weight: normal;
    }

    .radio-group input[type="radio"] {
        margin-right: 6px;
        width: 16px;
        height: 16px;
        accent-color: #015030;
    }

        .radio-group input[type="radio"]:checked {
            background-color: #015030;
            border-color: #015030;
        }

.upload-section {
}

    .upload-section .form-group:last-child {
        margin-bottom: 0;
    }

.upload-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 15px;
    border: 1px dashed #ddd;
    border-radius: 4px;
    background: #fafafa;
}

    .upload-item:last-child {
        margin-bottom: 0;
    }

.upload-icon {
    width: 40px;
    height: 40px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff4444"><path d="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z" /></svg>') center/contain no-repeat;
    margin-right: 15px;
    flex-shrink: 0;
}

.upload-info {
    flex: 1;
}

    .upload-info p {
        margin: 0;
        font-size: 14px;
        color: #666;
    }

.upload-btn {
    background: #015030;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

    .upload-btn:hover {
        background: #013524;
    }

.file-input {
    display: none;
}

.file-list {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    position: relative;
    min-width: 80px;
    max-width: 120px;
}

    .file-item img {
        width: 40px;
        height: 40px;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        object-fit: cover;
    }

.file-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .file-icon.pdf {
        background: url('/pcshop/images/pdffile.png') center/contain no-repeat;
    }

    .file-icon.image {
        background: url('/pcshop/images/pic.png') center/contain no-repeat;
    }

.file-name {
    font-size: 11px;
    color: #333;
    text-align: center;
    word-break: break-word;
    line-height: 1.2;
}

.file-remove {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .file-remove:hover {
        background: #c82333;
    }

.required {
    color: #ff4444;
}

.button {
    background: linear-gradient(to bottom, #FFFFFF 0%, #F0F0F0 100%);
    color: #015030 !important;
    font-size: 14px;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    width: 180px;
    border: 1px solid #015030;
}

    .button:hover {
        background: linear-gradient(to bottom, #F0F0F0 0%, #E0E0E0 100%);
    }

.a1 {
    background: #015030;
    color: white !important;
    font-size: 14px;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    width: 140px;
    margin: 0;
}

    .a1:hover {
        background: #013524;
    }
/* 区域选择级联框样式 */
.area-cascade {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cascade-level {
    min-width: 120px;
    flex: 1;
}

.cascade-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

    .cascade-select:focus {
        outline: none;
        box-shadow: 0 0 0 1px #015030;
    }

    .cascade-select:disabled {
        background-color: #f5f5f5;
        cursor: not-allowed;
        color: #999;
    }

.area-path {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

@media (max-width: 768px) {
    .container {
        margin: 20px;
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .account-type label {
        margin: 0 15px;
    }

    .area-cascade {
        flex-direction: column;
    }

    .cascade-level {
        min-width: auto;
    }
}
