/* Delivery Method Section */
.delivery-method-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.delivery-method-selection h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2d3748;
}

.delivery-method-selection .subtitle {
    font-size: 14px;
    color: #718096;
    margin-bottom: 25px;
}

.method-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.method-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.method-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.method-card.active {
    border-color: #667eea;
    background: #f0f4ff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.method-icon {
    font-size: 48px;
    margin-bottom: 15px;
    text-align: center;
}

.method-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2d3748;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.info-icon {
    display: inline-block;
    cursor: help;
    color: #667eea;
    font-size: 18px;
    font-weight: normal;
    line-height: 1;
    vertical-align: middle;
    position: relative;
    transition: color 0.15s ease;
}

.info-icon:hover {
    color: #5a67d8;
}

/* Custom tooltip that appears immediately */
.info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 10px 14px;
    background: #2d3748;
    color: #ffffff;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.5;
    white-space: normal;
    width: 280px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease, visibility 0.1s ease;
    visibility: hidden;
    z-index: 1000;
    text-align: left;
}

/* Arrow pointing down */
.info-icon::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 2px;
    border: 5px solid transparent;
    border-top-color: #2d3748;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease, visibility 0.1s ease;
    visibility: hidden;
    z-index: 1001;
}

.info-icon:hover::after,
.info-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

.method-description {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
}

.method-benefits {
    margin-bottom: 20px;
    flex-grow: 1;
}

.benefit {
    font-size: 14px;
    color: #48bb78;
    margin: 8px 0;
    padding-left: 8px;
}

.select-method-btn {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

/* Desktop: show desktop text, hide mobile text */
.desktop-text {
    display: inline !important;
}

.mobile-text {
    display: none !important;
}

/* Mobile: shorter text and compact styling */
@media (max-width: 768px) {
    .delivery-method-selection h3 {
        font-size: 1.1rem;
    }
    
    .delivery-method-selection .subtitle {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .method-cards {
        gap: 8px;
    }
    
    .method-card {
        padding: 12px 8px;
    }
    
    .method-icon {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .method-card h4 {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    .info-icon {
        font-size: 11px;
        line-height: 16px;
        width: 16px;
        height: 16px;
    }
    
    .method-description {
        font-size: 0.7rem;
        margin-bottom: 8px;
        line-height: 1.4;
    }
    
    .benefit {
        font-size: 0.7rem;
        padding: 3px 0;
        margin: 0;
    }
    
    .select-method-btn {
        padding: 8px 10px;
        font-size: 0.75rem;
        margin-top: 8px;
    }
    
    /* Show mobile text, hide desktop text */
    .desktop-text {
        display: none !important;
    }
    
    .mobile-text {
        display: inline !important;
    }
}

.select-method-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.select-method-btn.selected {
    background: #48bb78;
}

.select-method-btn.selected:hover {
    background: #38a169;
}

/* Manuscript upload section (shown when Complete Book PDF is selected) */
.manuscript-upload-section {
    margin-top: 30px;
    padding: 20px;
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    display: none;
}

.manuscript-upload-section.show {
    display: block;
}

.upload-placeholder {
    text-align: center;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}

.upload-placeholder:hover {
    background: #edf2f7;
    background-color: #edf2f7;
    border-color: #667eea;
}

.upload-progress {
    display: none;
    text-align: center;
    padding: 20px;
}

.progress-text {
    margin-top: 10px;
    color: #667eea;
    font-weight: 600;
}

.validation-result {
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
}

.validation-result.success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #22543d;
}

.validation-result.error {
    background: #fff5f5;
    border: 1px solid #fc8181;
    color: #742a2a;
}

.validation-icon {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.validation-message {
    font-size: 14px;
}

.validation-details {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.8;
}

.validation-help {
    margin-top: 12px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    font-size: 13px;
}

