/* Document Download Manager - Frontend CSS */

.ddm-download-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ddm-document-info {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.ddm-document-info h3 {
    color: #1e293b;
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 15px 0;
}

.ddm-description {
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.ddm-download-form-wrapper h4 {
    color: #334155;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 25px 0;
}

.ddm-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ddm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ddm-form-group {
    display: flex;
    flex-direction: column;
}

.ddm-form-group label {
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ddm-form-group .required {
    color: #ef4444;
}

.ddm-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: #1e293b;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.ddm-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ddm-form-message {
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    display: none;
}

.ddm-form-message.success {
    display: block;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.ddm-form-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.ddm-form-submit {
    margin-top: 10px;
}

.ddm-submit-btn {
    width: 100%;
    padding: 16px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.ddm-submit-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.ddm-submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .ddm-download-container {
        padding: 20px;
        margin: 20px 15px;
    }
    
    .ddm-document-info h3 {
        font-size: 20px;
    }
    
    .ddm-form-row {
        grid-template-columns: 1fr;
    }
    
    .ddm-submit-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Maxwellテーマとの互換性 */
.ddm-download-container * {
    box-sizing: border-box;
}

.ddm-download-container h3,
.ddm-download-container h4 {
    margin-top: 0;
}
