/* Linkshow Contact Form Styles */

/* Form Wrapper */
.linkshow-contact-form-wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* 移除外层div的内边距 */
.bg-transparent.rounded-lg.p-6.lg\:p-8 {
    padding: 0 !important;
}

.linkshow-form-container {
    width: 100% !important;
    max-width: none !important;
}

.linkshow-form-content {
    width: 100% !important;
    max-width: none !important;
}

.linkshow-contact-form {
    width: 100% !important;
    max-width: none !important;
}

/* 在Tailwind网格中占据合适的宽度 */
/* 当表单在lg:col-span-1中时，在大屏幕上占据50%宽度 */
@media (min-width: 1024px) {
    .linkshow-contact-form-wrapper {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* 在中等屏幕上的响应式调整 */
@media (min-width: 768px) and (max-width: 1023px) {
    .linkshow-contact-form-wrapper {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* 在小屏幕上的响应式调整 */
@media (max-width: 767px) {
    .linkshow-contact-form-wrapper {
        width: 100% !important;
        padding: 20px;
    }
    
    @media (max-width: 480px) {
        .linkshow-contact-form-wrapper {
            width: 100% !important;
            margin: 0 !important;
            padding: 20px;
        }
    }
}

/* Form Header */
.linkshow-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.linkshow-form-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
}

.linkshow-form-description {
    color: #666;
    font-size: 16px;
    margin: 0 0 8px;
    line-height: 1.5;
}

.linkshow-form-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0 0 30px;
    line-height: 1.4;
}

/* Form Styles */
.linkshow-form-group {
    margin-bottom: 20px;
}

/* 双列布局 */
.linkshow-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.linkshow-form-col {
    flex: 1;
    margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .linkshow-form-row {
        flex-direction: row;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .linkshow-form-col {
        flex: 1;
        min-width: calc(50% - 7.5px);
        margin-bottom: 20px;
    }
}

/* 更小屏幕时保持双列布局 */
@media (max-width: 480px) {
    .linkshow-form-row {
        flex-direction: row;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .linkshow-form-col {
        flex: 1;
        min-width: calc(50% - 5px);
        margin-bottom: 20px;
    }
    
    .linkshow-form-input,
    .linkshow-form-textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

.linkshow-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.linkshow-required {
    color: #e74c3c;
}

.linkshow-form-input,
.linkshow-form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.linkshow-form-input:focus,
.linkshow-form-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.linkshow-form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form Actions */
.linkshow-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

/* 提交按钮样式 */
.linkshow-btn-submit {
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    background-color: #00a65a !important;
    color: white !important;
    box-shadow: none !important;
}

.linkshow-btn-submit:hover {
    background-color: #008d4c !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

.linkshow-btn-submit:active {
    transform: translateY(0) !important;
}

/* Form Message */
.linkshow-form-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.linkshow-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.linkshow-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading State */
.linkshow-btn-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.linkshow-btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: linkshow-spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@keyframes linkshow-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .linkshow-form-actions {
        flex-direction: column;
    }
    
    .linkshow-btn-submit {
        width: 100%;
        margin: 0;
    }
}