* {
    box-sizing: border-box;
}
body {
    background: #ffffff;
    min-height: 100vh;
}
main {
    padding: 0;
}

/* Hero Section */
.form-hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 60px 0 50px 0;
    position: relative;
    overflow: hidden;
}

.form-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.form-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
    z-index: 0;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

.form-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.form-hero .hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    animation: floatIcon 3s ease-in-out infinite;
}

.form-hero .hero-icon i {
    font-size: 2rem;
    color: #ffffff;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.form-hero .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.form-hero .hero-subtitle {
    font-size: 1.1rem;
    color: #5a6c7d;
    line-height: 1.6;
    margin: 0;
}

/* Form Container */
.form-container {
    background-color: #ffffff;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 1200px;
    margin: -30px auto 60px auto;
    position: relative;
    z-index: 1;
}

/* Responsive Design for Hero Section */
@media (max-width: 992px) {
    .form-hero {
        padding: 50px 0 40px 0;
    }

    .form-hero .hero-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
    }

    .form-hero .hero-icon i {
        font-size: 1.75rem;
    }

    .form-hero .hero-title {
        font-size: 2rem;
    }

    .form-hero .hero-subtitle {
        font-size: 1rem;
    }

    .form-container {
        padding: 40px 30px;
        margin: -25px auto 50px auto;
    }
}

@media (max-width: 768px) {
    .form-hero {
        padding: 40px 0 30px 0;
    }

    .form-hero .hero-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .form-hero .hero-icon i {
        font-size: 1.5rem;
    }

    .form-hero .hero-title {
        font-size: 1.75rem;
    }

    .form-hero .hero-subtitle {
        font-size: 0.95rem;
    }

    .form-container {
        padding: 30px 20px;
        margin: -20px auto 40px auto;
    }
}
/* Form Title - Hidden as we use Hero Section now */
.form-title {
    display: none;
}
.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-left: 4px solid #667eea;
    border-radius: 8px;
    color: #2c3e50;
    letter-spacing: 0.2px;
}
.membership-option {
    margin-bottom: 20px;
    padding: 20px;
    border: 2px solid #e8ecf1;
    border-radius: 10px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    width: 100%;
    display: block;
    box-sizing: border-box;
}
/* Ensure radio-group is also 100% width */
.el-radio-group {
    width: 100%;
    display: block;
}
.membership-option:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}
.membership-option h5 {
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 16px;
}
.membership-option p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: #5a6c7d;
}
.el-form-item {
    margin-bottom: 24px;
}
/* Reduce spacing related to date picker */
.el-date-editor {
    margin-bottom: 0;
}
.el-date-editor + .el-form-item__error {
    margin-top: 4px;
}
/* Ensure date picker popup does not affect layout */
.el-picker__popper {
    margin-top: 5px !important;
}
/* More specific selector to ensure dropdown size */
.el-form-item .el-select,
.el-form-item .el-date-editor {
    width: 100% !important;
}
.el-form-item .el-select .el-input__wrapper,
.el-form-item .el-select .el-input .el-input__wrapper,
.el-form-item .el-date-editor .el-input__wrapper,
.el-form-item .el-date-editor .el-input .el-input__wrapper {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 10px 15px !important;
    box-sizing: border-box !important;
}
/* Ensure the input part of the dropdown is also correct */
.el-select .el-input {
    height: 42px !important;
}
.el-select .el-input.is-focus .el-input__wrapper {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
}
/* Strongest selector for Element Plus internal structure */
.el-select__wrapper,
.el-select .el-select__wrapper,
.el-form-item .el-select .el-select__wrapper,
.el-select .el-input__wrapper,
.el-form-item .el-select .el-input__wrapper,
.el-form-item .el-select .el-input .el-input__wrapper,
.el-form-item_content .el-select .el-input__wrapper {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 10px 15px !important;
    box-sizing: border-box !important;
}
.el-select__selection,
.el-select .el-select__selection {
    height: 100% !important;
    line-height: 22px !important;
}
.el-select__selected-item,
.el-select .el-select__selected-item {
    line-height: 22px !important;
}
.el-form-item__label {
    font-size: 15px;
    font-weight: 500;
    color: #34495e;
    margin-bottom: 8px;
    line-height: 1.5;
}
.el-input__wrapper {
    padding: 10px 15px;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-height: 42px;
    display: flex;
    align-items: center;
}
.el-input__wrapper:hover {
    box-shadow: 0 0 0 1px #667eea inset;
}
.el-input__wrapper.is-focus {
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2) inset;
}
.el-input__inner {
    height: auto;
    line-height: 1.5;
}
.el-textarea__inner {
    padding: 12px 15px;
    font-size: 15px;
    border-radius: 8px;
    line-height: 1.6;
}
/* Dropdown selector styles */
.el-select {
    width: 100% !important;
}
.el-select .el-input {
    width: 100%;
}
.el-select .el-input__wrapper {
    padding: 10px 15px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
}
.el-select .el-input__inner {
    height: auto !important;
    line-height: 1.5 !important;
    padding-right: 30px !important;
    font-size: 15px !important;
}
.el-select .el-input__suffix {
    display: flex !important;
    align-items: center !important;
}
/* More specific selector to ensure styles take effect */
.el-form-item .el-select .el-input__wrapper,
.el-form-item .el-select .el-input .el-input__wrapper {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 10px 15px !important;
}
/* Date picker styles */
.el-date-editor {
    width: 100% !important;
}
.el-date-editor.el-input {
    width: 100% !important;
}
.el-date-editor .el-input__wrapper {
    padding: 10px 15px !important;
    min-height: 42px !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
}
.el-date-editor .el-input__inner {
    height: auto !important;
    line-height: 1.5 !important;
}
.el-date-editor .el-input__prefix {
    display: flex !important;
    align-items: center !important;
    left: 12px !important;
}
/* Reduce date picker spacing */
.el-date-editor.el-input__wrapper {
    margin-bottom: 0 !important;
}
/* Number input styles */
.el-input-number {
    width: 100% !important;
}
.el-input-number .el-input {
    width: 100%;
}
.el-input-number .el-input__wrapper {
    padding: 10px 15px !important;
    min-height: 42px !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
}
.el-input-number .el-input__inner {
    height: auto !important;
    line-height: 1.5 !important;
}
.el-form-item.is-required .el-form-item__label::before {
    position: absolute;
    left: 0;
    top: 0;
    color: #e74c3c;
    font-weight: 600;
}
.el-form-item.is-required .el-form-item__label {
    position: relative;
    padding-left: 14px;
}
.el-checkbox {
    white-space: normal !important;
    display: flex !important;
    align-items: flex-start !important;
    line-height: 1.7 !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}
/* Adjust checkbox size */
.el-checkbox__input {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}
.el-checkbox__inner {
    width: 20px !important;
    height: 20px !important;
    border-radius: 4px !important;
    border: 2px solid #dcdfe6 !important;
}
.el-checkbox__inner::after {
    height: 10px !important;
    left: 6px !important;
    top: 2px !important;
    width: 5px !important;
    border-width: 0 2px 2px 0 !important;
}
.el-checkbox__input.is-checked .el-checkbox__inner {
    background-color: #667eea !important;
    border-color: #667eea !important;
}
.el-checkbox__input.is-checked .el-checkbox__inner::after {
    border-color: #ffffff !important;
}
.el-checkbox__label {
    font-size: 15px;
    line-height: 1.7;
    color: #34495e;
    padding-left: 10px;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}
/* Ensure form-item content part can also automatically adjust height */
.el-form-item .el-checkbox {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}
.el-form-item__content {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}
.el-form-item__content .el-checkbox {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}
.upload-item {
    margin-bottom: 24px;
}
.upload-item .el-upload {
    border: 2px dashed #d1d9e0;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #fafbfc;
}
.upload-item .el-upload:hover {
    border-color: #667eea;
    background-color: #f0f4ff;
}
.el-button {
    border-radius: 8px;
    font-weight: 500;
    padding: 12px 24px;
    font-size: 15px;
    height: auto;
    min-height: 42px;
    transition: all 0.3s ease;
}
.el-button--small {
    padding: 8px 16px;
    font-size: 13px;
    min-height: 32px;
}
.el-button--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.el-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}
.el-button--large {
    padding: 16px 36px;
    font-size: 17px;
    min-height: 50px;
}
.el-button--danger {
    min-height: 32px;
    padding: 6px 12px;
}
/* Circular button styles - ensure it's a perfect circle */
.el-button.is-circle,
.el-button--circle {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.el-button.is-circle.el-button--small,
.el-button--circle.el-button--small {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
}
.el-radio {
    margin-bottom: 10px;
}
.el-radio__label {
    font-size: 15px;
    color: #34495e;
}
/* Ensure radio inside membership-option is block-level display */
.membership-option .el-radio {
    display: block;
    width: 100%;
}
/* Style reference section */
.el-form-item h5 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8ecf1;
}
/* Style tip text */
.el-upload__tip {
    color: #7f8c8d;
    font-size: 13px;
}
/* Style declaration section */
.mb-3 {
    margin-bottom: 1rem;
}
/* Global override: ensure all dropdown selectors have consistent size - highest priority */
#app .el-select .el-input__wrapper,
#app .el-select .el-input .el-input__wrapper,
#app .el-form-item .el-select .el-input__wrapper,
#app .el-form-item .el-select .el-input .el-input__wrapper,
#app .el-form-item_content .el-select .el-input__wrapper,
#app .el-form-item_content .el-select .el-input .el-input__wrapper {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 10px 15px !important;
    box-sizing: border-box !important;
}
#app .el-select .el-input {
    height: 42px !important;
}
#app .el-select .el-input__inner {
    line-height: 22px !important;
    height: 22px !important;
}
/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px 5px;
        background: #ffffff;
    }
    .form-container {
        padding: 30px 20px;
        border-radius: 12px;
    }
    .form-title {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }
    .form-title h1 {
        font-size: 22px;
    }
    .form-title h2 {
        font-size: 16px;
    }
    .section-title {
        font-size: 18px;
        padding: 12px 15px;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .el-form-item {
        margin-bottom: 20px;
    }
    .el-form-item__label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    .el-input__wrapper {
        padding: 8px 12px;
        font-size: 14px;
    }
    .el-textarea__inner {
        padding: 10px 12px;
        font-size: 14px;
    }
    .el-select .el-input__wrapper,
    .el-date-editor .el-input__wrapper,
    .el-input-number .el-input__wrapper {
        padding: 8px 12px !important;
        min-height: 38px !important;
        height: 38px !important;
        font-size: 14px !important;
    }
    .el-form-item .el-select .el-input__wrapper,
    .el-form-item .el-date-editor .el-input__wrapper {
        height: 38px !important;
        min-height: 38px !important;
    }
    .el-row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .el-col {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 0;
    }
    /* Spacing adjustment when two columns become one column on mobile */
    .el-row .el-col {
        margin-bottom: 0;
    }
    .el-button {
        padding: 10px 20px;
        font-size: 14px;
        min-height: 40px;
    }
    .el-button--large {
        padding: 14px 28px;
        font-size: 16px;
        min-height: 46px;
    }
    .el-button--small {
        padding: 6px 14px;
        font-size: 12px;
        min-height: 30px;
    }
    .el-checkbox {
        align-items: flex-start !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    .el-checkbox__label {
        font-size: 14px;
        line-height: 1.6;
        padding-left: 8px;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    .el-checkbox__input {
        margin-top: 3px;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    .el-form-item__content {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    .el-form-item__content .el-checkbox {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
}
@media (max-width: 480px) {
    .form-container {
        padding: 20px 15px;
    }
    .form-title h1 {
        font-size: 20px;
    }
    .form-title h2 {
        font-size: 14px;
    }
    .section-title {
        font-size: 16px;
        padding: 10px 12px;
    }
    .membership-option {
        padding: 15px;
    }
    .membership-option p {
        font-size: 13px;
    }
    .el-checkbox__label {
        font-size: 13px;
        line-height: 1.5;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    .el-checkbox {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    .el-form-item__content {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
}

/* Vue Cloak - Hide unrendered template */
[v-cloak] {
    display: none !important;
}

/* Skeleton Screen Styles */
#skeleton-screen {
    opacity: 1;
    transition: opacity 0.6s ease-out;
    position: relative;
    z-index: 1;
}

#skeleton-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

#vue-content {
    opacity: 0;
    transition: opacity 0.6s ease-in;
    position: relative;
    z-index: 2;
}

#vue-content.fade-in {
    opacity: 1;
}

/* Skeleton Animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton-container {
    width: 100%;
}


.skeleton-line {
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    margin-bottom: 8px;
}

.skeleton-title {
    width: 60%;
    height: 28px;
    margin: 0 auto 8px;
}

.skeleton-subtitle {
    width: 50%;
    height: 18px;
    margin: 0 auto;
}

.skeleton-section {
    margin-bottom: 30px;
}

.skeleton-section-title {
    height: 20px;
    width: 40%;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    margin: 40px 0 25px;
    padding: 15px 20px;
}

.skeleton-upload-box {
    width: 148px;
    height: 148px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    margin-bottom: 24px;
}

.skeleton-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.skeleton-col {
    flex: 1;
}

.skeleton-form-item {
    margin-bottom: 24px;
}

.skeleton-label {
    height: 15px;
    width: 30%;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    margin-bottom: 8px;
}

.skeleton-input {
    height: 42px;
    width: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-textarea {
    height: 120px;
    width: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-upload-button {
    height: 42px;
    width: 150px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-radio-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skeleton-radio-option {
    height: 150px;
    width: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-referee {
    margin-bottom: 30px;
}

.skeleton-referee-title {
    height: 16px;
    width: 20%;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    margin-bottom: 15px;
}

.skeleton-checkbox {
    height: 20px;
    width: 20px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    display: inline-block;
    margin-right: 10px;
}

.skeleton-button {
    height: 50px;
    width: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Responsive Skeleton */
@media (max-width: 768px) {
    .skeleton-row {
        flex-direction: column;
        gap: 0;
    }
    
    .skeleton-title {
        height: 22px;
    }
    
    .skeleton-subtitle {
        height: 16px;
    }
    
    .skeleton-section-title {
        height: 18px;
        margin: 30px 0 20px;
    }
    
    .skeleton-upload-box {
        width: 100%;
        max-width: 148px;
    }
    
    .skeleton-input,
    .skeleton-textarea,
    .skeleton-upload-button {
        height: 38px;
    }
    
    .skeleton-textarea {
        height: 100px;
    }
    
    .skeleton-radio-option {
        height: 120px;
    }
    
    .skeleton-button {
        height: 46px;
    }
}

@media (max-width: 480px) {
    .skeleton-title {
        height: 20px;
    }
    
    .skeleton-subtitle {
        height: 14px;
    }
    
    .skeleton-section-title {
        height: 16px;
    }
    
    .skeleton-radio-option {
        height: 100px;
    }
}

